diff --git a/packages/semi-foundation/dropdown/constants.ts b/packages/semi-foundation/dropdown/constants.ts index 9288ef43e1..519f540731 100644 --- a/packages/semi-foundation/dropdown/constants.ts +++ b/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'], }; diff --git a/packages/semi-foundation/popover/constants.ts b/packages/semi-foundation/popover/constants.ts index ded3aff0ed..59aafb9548 100644 --- a/packages/semi-foundation/popover/constants.ts +++ b/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)',