mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-01 13:18:29 +01:00
3db717761e
This undoes a recent change https://github.com/ianstormtaylor/slate/pull/2131 Which hooked up `this.handlers.onNativeSelectionChange` to `'selectionchange'` as well as `this.handlers.onBeforeInput` to `'beforeinput'`. It turns out that in order to fix the iOS issues, we only needed the change to `onBeforeInput`. The corect handler for `'selectionchange'` is the instance method `this.onNativeSelectionChange`. This broke a whole bunch of focus related issues.
This package contains the React-specific logic for Slate. It's separated further into a series of directories:
- Components — containing the React components for rendering Slate editors.
- Constants — containing a few private constants modules.
- Plugins — containing the React-specific plugins for Slate editors.
- Utils — containing a few private convenience modules.
Feel free to poke around in each of them to learn more!