vue3-contextmenu icon indicating copy to clipboard operation
vue3-contextmenu copied to clipboard

多个contextmenu 父子级关系 就只显示父级的菜单

Open chun222 opened this issue 3 years ago • 2 comments

举个例子:

   <a-row :gutter="[10, 10]" style="margin-top:20px" v-contextmenu="{ name: 'boxmenu'  }">
            <a-col :span="4" v-for="info in state.showfiles" style="z-index:999999" 
                v-contextmenu="{ name: 'dirmenu', info: info }">
            .......
            </a-col>
          </a-row>

下面的dirmenu就是去效果 显示的还是boxmenu

chun222 avatar Mar 31 '22 02:03 chun222

I have the same issue.

gaetandezeiraud avatar Jan 04 '23 10:01 gaetandezeiraud

Easy fix, edit the directive.ts of the library and add e.stopPropagation() under e.preventDefault().

gaetandezeiraud avatar Jan 04 '23 13:01 gaetandezeiraud