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

JSON Editor Options onSelectionChange() callback not getting called (Triggered) #74

Open
MohanabalanD opened this issue Sep 7, 2020 · 1 comment
Labels
question Further information is requested

Comments

@MohanabalanD
Copy link

MohanabalanD commented Sep 7, 2020

Describe the bug
JSON Editor Options onSelectionChange() callback not getting called (Triggered)

To Reproduce
this.editorOptions.onSelectionChange = () => {
console.log("selection change called");
}

Expected behavior
I have initialized editor, editor options. And I need path of the selected tree node. For it, I have added editor options onSelectionChange method. But callback is not getting triggered. Any idea why callbacks not getting triggered

I have added editor as viewChild.
@ViewChild('editor', { static: false }) editor: JsonEditorComponent;

And initialized JSONEditor Options as
editorOptions: JsonEditorOptions = new JsonEditorOptions();

All others features working as expected but callback is not getting triggered. Could you help me on this.

@mariohmol
Copy link
Owner

Hi, I dont know how to use this function, try to make it work in vanilla json in a html file and we can try to reproduce in angular

josdejong/jsoneditor#1097

@mariohmol mariohmol added the question Further information is requested label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants