josdejong/svelte-jsoneditor

Issue with focus when created in a new window.

Offen

#90 geöffnet am 03.06.2022

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (147 Forks)github user discovery
bughelp wanted

Repository-Metriken

Stars
 (1.260 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 9h 26m) (5 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide