ng-jsoneditor icon indicating copy to clipboard operation
ng-jsoneditor copied to clipboard

editing a value in tree mode causes collapse

Open solmetricchris opened this issue 9 years ago • 2 comments

I'm trying to track down a weird behavior where typing into the value of a field causes the "tree" mode to collapse and leaves me unable to see the field where I'm typing. Has anyone seen this or does anyone understand what might cause this ? This does not happen in "text" mode.

I'm pretty sure this is related to the "timeout" value in the options. If I set that to say 1000mS then the collapse doesn't occur until after 1000ms.

solmetricchris avatar Feb 18 '16 18:02 solmetricchris

Hi @solmetricchris,

Do you have an examplecode / github repo or something? Do you use the latest jsoneditor version? I personally never experienced something like this.

baslr avatar Feb 23 '16 01:02 baslr

I am getting a similar behavior. I have implemented your directive in an Angular + Electron app getting it's json file from Firebase and all is working well. My issue happens when I update a value that the entire tree collapses, which makes editing a seriously difficult endeavor.

I am using the form mode, and every time I edit a value the data is sent to Firebase, where I see that only the corresponding value is updated, however once this happens the form in the app is collapsed. Any advice on how to get around this would be appreciated.

jeffstahlin avatar Dec 11 '16 22:12 jeffstahlin