Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit.insert does not trigger onChange #25

Open
omnisnash opened this issue Nov 3, 2022 · 0 comments
Open

Edit.insert does not trigger onChange #25

omnisnash opened this issue Nov 3, 2022 · 0 comments

Comments

@omnisnash
Copy link

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

@omnisnash omnisnash changed the title Edit.insert does not trigge onChange Edit.insert does not trigger onChange Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant