josdejong/svelte-jsoneditor

Context menu don´t work inside shadowDOM.

Open

#49 opened on 2022年3月16日

GitHub で見る
 (7 comments) (2 reactions) (0 assignees)TypeScript (149 forks)github user discovery
bughelp wanted

Repository metrics

Stars
 (1,237 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド