Browse Source

fix: popover trigger set (#1820)

格桑 2 years ago
parent
commit
c8e5ca706b

+ 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)',