File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ const Dropdown = defineComponent({
92
92
class : classNames ( child ?. props ?. class , `${ prefixCls } -trigger` ) ,
93
93
disabled,
94
94
} ) ;
95
- const triggerActions = disabled ? [ ] : trigger ;
95
+ const triggerActions = disabled ? [ ] : typeof trigger === 'string' ? [ trigger ] : trigger ;
96
96
let alignPoint ;
97
97
if ( triggerActions && triggerActions . indexOf ( 'contextmenu' ) !== - 1 ) {
98
98
alignPoint = true ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export default defineComponent({
29
29
'hover' ,
30
30
) ,
31
31
alignPoint : PropTypes . looseBool ,
32
- showAction : PropTypes . array . def ( [ ] ) ,
33
- hideAction : PropTypes . array . def ( [ ] ) ,
32
+ showAction : PropTypes . array ,
33
+ hideAction : PropTypes . array ,
34
34
getPopupContainer : PropTypes . func ,
35
35
visible : PropTypes . looseBool ,
36
36
defaultVisible : PropTypes . looseBool . def ( false ) ,
@@ -177,7 +177,6 @@ export default defineComponent({
177
177
if ( ! triggerHideAction && trigger . indexOf ( 'contextmenu' ) !== - 1 ) {
178
178
triggerHideAction = [ 'click' ] ;
179
179
}
180
-
181
180
const triggerProps = {
182
181
...otherProps ,
183
182
prefixCls,
You can’t perform that action at this time.
0 commit comments