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: Prevent onChange from firing when updating value in readOnly mode #605

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

togo5
Copy link

@togo5 togo5 commented Apr 6, 2024

Close #504

As mentioned in the Issue, this is a fix for the bug where updating the value triggers onChange when the Editor's readOnly is set to true.

Specifically, I limited the triggering of onChange by setting preventTriggerChangeEvent.current = true; even when readOnly is true.

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.

onChange called when the readOnly option gets changed with a value update
1 participant