dillon1000/react
Commit
Browse files Add select event plugin
Polyfill 'onSelect' behavior for React. Use non-standard 'selectionchange' event rather than 'select' event. This allows us to fire the event when user moves the cursor via arrow keys, and not just when they select multiple chars. Add methods to ReactDOMSelection to make getting current selection easier, so we can do a fast check for change without having to calculate char offsets for selection start and end.
Changed paths8 files
First-parent comparisonsrc/core/ReactComponentWithPureRenderMixin.js ModifiedM src/core/ReactDOMSelection.js ModifiedM src/core/ReactDefaultInjection.js ModifiedM src/core/ReactInputSelection.js ModifiedM src/eventPlugins/ChangeEventPlugin.js ModifiedM src/eventPlugins/DefaultEventPluginOrder.js ModifiedA src/eventPlugins/SelectEventPlugin.js AddedA src/utils/shallowEqual.js AddedPatch
Files changed
Rendering syntax-highlighted changes…