josdejong/svelte-jsoneditor

Context menu don´t work inside shadowDOM.

Open

#49 aperta il 16 mar 2022

Vedi su GitHub
 (7 commenti) (2 reazioni) (0 assegnatari)TypeScript (149 fork)github user discovery
bughelp wanted

Metriche repository

Star
 (1237 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor