Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Advanced Settings] Fix code editor field (elastic#177772)
Fixes elastic#177600 ## Summary This PR fixes the incorrect behaviour described in elastic#177600, which seems to be caused because the `onChange` handler of the code editor component is redundantly called with the current value when the "Reset to default" link or the "Save" button is clicked. This fix adds a check for whether the value passed to the `onChange` is different from the current value and only then it would update the field.
- Loading branch information