{"_id":"@clubajax/react-inject-change-events","_rev":"2-23d1b0c4d7de1a9d1c683261531bb76f","name":"@clubajax/react-inject-change-events","description":"This plugin allows for injecting other nodeNames into the React ChangeEventPlugin.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"author":{"name":"Mike Wilcox @clubajax"},"name":"@clubajax/react-inject-change-events","main":"index.js","description":"This plugin allows for injecting other nodeNames into the React ChangeEventPlugin.","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/clubajax/react-inject-change-events.git"},"gitHead":"8b16707e769456cbbeae4e31d9c293a0bd945447","bugs":{"url":"https://github.com/clubajax/react-inject-change-events/issues"},"homepage":"https://github.com/clubajax/react-inject-change-events#readme","_id":"@clubajax/react-inject-change-events@1.0.0","scripts":{},"_shasum":"e849166a53bd6197ae6b34093b28abc0ee5f43c8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.3","_npmUser":{"name":"mwilcox","email":"anm9tr@gmail.com"},"dist":{"shasum":"e849166a53bd6197ae6b34093b28abc0ee5f43c8","tarball":"https://registry.npmjs.org/@clubajax/react-inject-change-events/-/react-inject-change-events-1.0.0.tgz","integrity":"sha512-3+BJF96/2MZqsF+ldddC/LCMz+V2FHNTMF4y/1l61SW6aP3XcZp1+16Ov9Kjyk4YKVLBXydbwzAEBJWVt0Z0+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCL+eyqUF0GM5x4ByQ14ubSqpadgo11z7X4SpiZTxqYMAIhAKHw3YndO+EUFOsqBkJwQ1J5F0uU1exLhuCKt6lNX5zA"}]},"maintainers":[{"name":"mwilcox","email":"anm9tr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-inject-change-events-1.0.0.tgz_1506622832731_0.42953042429871857"}}},"readme":"# React Inject Change Events\nThis plugin allows for injecting other nodeNames into the React ChangeEventPlugin.\n\nIn other words, you can finally use onChange in your custom elements and Polymer components.\n\nBuilt and tested on React 15.1.0\n\n## Install\n\n    npm install @clubajax/react-inject-change-events --save\n    \n## Usage\n   \nNote that in the usage below, the value is accessed via `event.target.value`. React reuses an internal event and\ndoes not by default expose the native event. \n    \n    import injector from 'react-inject-change-events';\n    \n    // add all custom elements that have a change event\n    injector(['my-custom-drop-down', 'my-custom-input']);\n\n    onChange (event) {\n        value = event.target.value\n    }\n    \n    render(\n        <my-custom-drop-down onChange={this.onChange}>\n            <option value=\"change\">Change</option>\n            <option value=\"events\">Events</option>\n        </my-custom-drop-down>\n    );\n    \n## IMPORTANT NOTE\nThis plugin overwrites (copies) much of the functionality of the `ChangeEventPlugin`, with the exception of\nthe < IE 11.0 specic code, since those browsers are deprecated.\n\nThis plugin is unofficial, and there is no guarantee that the React team won't render this useless in a future release.\nIn particular, the plugin it injects could be made immutable.\n\nHowever, there may not be a need for this plugin in the future as the React team has this on their radar: \n[Track upcoming DOM technology upgrades #2836](https://github.com/facebook/react/issues/2836).\n\n##LICENSE\nThis code is provided as-is, via the [MIT License](./LICENSE)\n","maintainers":[{"name":"mwilcox","email":"anm9tr@gmail.com"}],"time":{"modified":"2022-06-12T16:10:27.550Z","created":"2017-09-28T18:20:34.131Z","1.0.0":"2017-09-28T18:20:34.131Z"},"homepage":"https://github.com/clubajax/react-inject-change-events#readme","repository":{"type":"git","url":"git+https://github.com/clubajax/react-inject-change-events.git"},"author":{"name":"Mike Wilcox @clubajax"},"bugs":{"url":"https://github.com/clubajax/react-inject-change-events/issues"},"license":"MIT","readmeFilename":"README.md"}