josdejong/svelte-jsoneditor

Context menu don´t work inside shadowDOM.

Open

#49 创建于 2022年3月16日

在 GitHub 查看
 (7 评论) (2 反应) (0 负责人)TypeScript (149 fork)github user discovery
bughelp wanted

仓库指标

Star
 (1,237 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南