Initial onChange() event
Author: priandCreated Aug 19, 2017Updated Dec 17, 2025
Labelsdiscussion
React-Quill version
- 1.1.0
An initial onChange() is thrown just after setting the value of the component using the value attribute. Even though the HTML is semantically identical, the actual string values (the one passed as the value and the one in the event) might be slightly different. Thus, when used in a form, the form turns instantly dirty as it thinks that the value changed. The onChange event should only be thrown after an actual change by a user, or having at least to flag to set this behavior when necessary. The regular HTML Input does not throw the event when the value is set.
Source: zenoamaro/react-quill