josdejong/svelte-jsoneditor

Issue with focus when created in a new window.

Aberta

#90 aberto em 3 de jun. de 2022

 (1 comentário) (0 reação) (0 responsável)TypeScript (147 forks)github user discovery
bughelp wanted

Métricas do repositório

Stars
 (1.260 estrelas)
Métricas de merge de PR
 (Mesclagem média 9h 26m) (5 fundiu PRs em 30d)

Description

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

Guia do colaborador