jsoneditor icon indicating copy to clipboard operation
jsoneditor copied to clipboard

No event is fired when changing values of boolean attributes by clicking on toggles

Open berry4u opened this issue 4 years ago • 3 comments

in that case onChange is fired but I think it could be fired the click event too. This could help in finding the path of change action.

berry4u avatar Dec 27 '20 23:12 berry4u

I just tried change a boolean by clicking the checkbox, and it fires onChange, onChangeJSON, and onChangeText. How can I reproduce your issue?

josdejong avatar Dec 28 '20 07:12 josdejong

Yes what you said is right, what I meant was to consider to fire even the onEvent which is more useful in order to quickly find what attribute has been clicked because onEvent returns path, while other events return the whole string or json.

berry4u avatar Dec 28 '20 13:12 berry4u

Ah, I understand what you mean.

Are you using the latest version of jsoneditor? This issue was addressed not long ago in v9.1.2, see #1126

josdejong avatar Dec 30 '20 10:12 josdejong