josdejong/svelte-jsoneditor

Context menu don´t work inside shadowDOM.

Offen

#49 geöffnet am 16.03.2022

 (7 Kommentare) (2 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 you create a component that extends HTMLElement and use shadowDOM, the context menus wont appear. How to reproduce:

  1. Create a class that extends HTMLElement
  2. Create a ShadowDOM via: this.attachShadow({mode: 'open'});
  3. Create a svelt-jsoneditor inside this custom Element
  4. Context menu don´t work.

If you keep everthing the same but don´t use shadowDOM it works as expected.

Contributor Guide