josdejong/svelte-jsoneditor

Context menu don´t work inside shadowDOM.

Open

#49 ouverte le 16 mars 2022

Voir sur GitHub
 (7 commentaires) (2 réactions) (0 assignés)TypeScript (149 forks)github user discovery
bughelp wanted

Métriques du dépôt

Stars
 (1 237 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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.

Guide contributeur