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

onChange event not called when adding new block #1997

Closed
MrMooky opened this issue Mar 11, 2022 · 1 comment · Fixed by #2007
Closed

onChange event not called when adding new block #1997

MrMooky opened this issue Mar 11, 2022 · 1 comment · Fixed by #2007
Assignees
Labels

Comments

@MrMooky
Copy link

MrMooky commented Mar 11, 2022

When I create a new element, e.g. a delimiter, and instantly store my content, the new element is not stored because the onChange event is not triggered. But when creating a new element and changing content (active keyup), the element gets stored because the onChange is triggered.

Expected behavior: onChange should be called after adding a new element.

Screenshots: https://www.loom.com/share/5bba14a6eb844bfdae677b47ee5e2553

Device, Browser, OS: macOS Safari

Editor.js version: 2.23.2

@robonetphy
Copy link
Member

@MrMooky, Thanks for reporting the bug.
But can you share some more details like
what is your editorjs configuration?
what method you are using to store the content instantly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants