瀏覽代碼

fix: popover trigger set (#1820)

格桑 2 年之前
父節點
當前提交
c8e5ca706b
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/semi-foundation/dropdown/constants.ts
  2. 1 1
      packages/semi-foundation/popover/constants.ts

+ 1 - 1
packages/semi-foundation/dropdown/constants.ts

@@ -9,7 +9,7 @@ const cssClasses = {
 
 const strings = {
     POSITION_SET: tooltipStrings.POSITION_SET,
-    TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
+    TRIGGER_SET: ['hover', 'focus', 'click', 'custom', 'contextMenu'],
     DEFAULT_LEAVE_DELAY: 100,
     ITEM_TYPE: ['primary', 'secondary', 'tertiary', 'warning', 'danger'],
 };

+ 1 - 1
packages/semi-foundation/popover/constants.ts

@@ -23,7 +23,7 @@ const strings = {
         'leftTopOver',
         'rightTopOver',
     ],
-    TRIGGER_SET: ['hover', 'focus', 'click', 'custom'],
+    TRIGGER_SET: ['hover', 'focus', 'click', 'custom', 'contextMenu'],
     DEFAULT_ARROW_STYLE: {
         borderOpacity: '1',
         backgroundColor: 'var(--semi-color-bg-3)',