FormidableLabs / FormidableLabs/use-editable
Edit.insert does not trigger onChange
Open
- Dominant language
- TypeScript
- Stars
- 619
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
First, thank for this hook, it's really nice work.
When I use `Edit.insert(append: string, offset?: number): void`, the text is correctly inserted in the editor but the `onChange` handler is not called, which result to a de-synchronization between the editor content and my state.
Here is a case reproduction: https://codesandbox.io/s/use-editable-forked-j2vztb?file=/src/Edit.js
Does I miss something ?
Thanks in advance
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.