mariohmol / ang-jsoneditor

Angular Jsoneditor that works with angular 4 to angular 15
https://stackblitz.com/edit/angular-json-editor
MIT License
156 stars 89 forks source link

Automatically curly brackets added end of JSON while running through selenium automation testing. #86

Closed PParshive closed 2 years ago

PParshive commented 3 years ago

Automatically curly brackets added end of JSON while running through selenium automation testing.

Expected behavior Curly brackets is not added end of JSON while running through selenium automation testing.

  <json-editor id="jsonTemplate" #editor [options]="options" autofocus="autofocus"
                        (keydown)="isDefault ? $event.preventDefault() : ''"
                        [formControl]="complexForm.controls['jsonTemplate']" autofocus
                        value="{{complexForm.controls['jsonTemplate']}}" onfocus="this.value = this.value;"
                        (change)="changeLog($event)"></json-editor>

Screenshots Screenshot (69)_LI

Version "ang-jsoneditor": "^1.10.3", "jsoneditor": "5.19.2"

Its not create a problem while manually. Only through automation got the behavior.

mariohmol commented 3 years ago

Any idea in what can cause it?

DId u test the same dataset with pure angjson editor? maybe its a bug on the core and not in the angular wrapper

mariohmol commented 2 years ago

Try to use this way instead [value]="complexForm.controls['jsonTemplate']"