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

fix(onchange): support data-mutation-free on attributes change #2393

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

neSpecc
Copy link
Member

@neSpecc neSpecc commented Jun 22, 2023

For now, data-mutation-free works only on addedNodes and removedNodes of a mutation record. This PR also adds a support for "attributes" mutation type — we need to check record target as well.

For example, Table tool fires unnecessary onChange callings (See editor-js/table#125) when hovering on a table cells. That is fixed by adding a data-mutation-free attribute. But that fix requires this PR to be merged

image

@neSpecc neSpecc merged commit 9e64003 into next Jun 22, 2023
@neSpecc neSpecc deleted the fix/onchange-mutation-free-attribute branch June 22, 2023 17:42
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

Successfully merging this pull request may close these issues.

3 participants