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

Issue with focus when created in a new window.

Open kharon4 opened this issue 2 years ago • 1 comments

If a new window is created using window.open() and then the json editor is created with target property set to wind.document.body where wind is the new window or any other element inside wind, the editor stops functioning as usual. There seems to be some issue with focusing on the right element. E.g. the text field for key is not focused when a new prop is created.

Link to pen demonstrating this behavior

kharon4 avatar Jun 03 '22 18:06 kharon4

Thanks for reporting, I indeed see the issue when trying to use the editor in the new window.

This may be related to #49.

Help solving this would be very welcome :)

josdejong avatar Jun 08 '22 07:06 josdejong