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

sortObjectKeys emits onChange events #921

Closed
oren-l opened this issue Mar 1, 2020 · 2 comments
Closed

sortObjectKeys emits onChange events #921

oren-l opened this issue Mar 1, 2020 · 2 comments
Labels

Comments

@oren-l
Copy link

oren-l commented Mar 1, 2020

According to API docs onChange, onChangeJSON and onChangeText are triggered only by user interactions and not by any programmatic changes.

Expected:
Enabling sortObjectKeys should not cause any onChange to be triggered

Actual:
Enabling sortObjectKeys causes many onChange calls (I guess one per order-change)

jsoneditor version: 8.6.1

Maybe this is related to #583

@josdejong josdejong added the bug label Mar 1, 2020
@josdejong
Copy link
Owner

Thanks for reporting Oren, the onChange should indeed not be triggered by enabling sortObjectKeys, this is a bug.

@josdejong
Copy link
Owner

This is fixed now in v8.6.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants