dillon1000/react
Commit
Browse files Add ReactDOMSelection module
Add a DOM based selection module. This can both be used on its own and in ReactInputSelection where our current implementation is lacking. There is still some inconsistency with how IE and modern browsers handle block nodes. Should be OK if we are just getting and setting and not trying to set selection based on character offsets.
Changed paths4 files
First-parent comparisonsrc/core/ReactDOMSelection.js AddedM src/core/ReactInputSelection.js ModifiedA src/dom/__tests__/getNodeForCharacterOffset-test.js AddedA src/dom/getNodeForCharacterOffset.js AddedPatch
Files changed
Rendering syntax-highlighted changes…