File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ const Dropdown = defineComponent({
9292 class : classNames ( child ?. props ?. class , `${ prefixCls } -trigger` ) ,
9393 disabled,
9494 } ) ;
95- const triggerActions = disabled ? [ ] : trigger ;
95+ const triggerActions = disabled ? [ ] : typeof trigger === 'string' ? [ trigger ] : trigger ;
9696 let alignPoint ;
9797 if ( triggerActions && triggerActions . indexOf ( 'contextmenu' ) !== - 1 ) {
9898 alignPoint = true ;
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ export default defineComponent({
2929 'hover' ,
3030 ) ,
3131 alignPoint : PropTypes . looseBool ,
32- showAction : PropTypes . array . def ( [ ] ) ,
33- hideAction : PropTypes . array . def ( [ ] ) ,
32+ showAction : PropTypes . array ,
33+ hideAction : PropTypes . array ,
3434 getPopupContainer : PropTypes . func ,
3535 visible : PropTypes . looseBool ,
3636 defaultVisible : PropTypes . looseBool . def ( false ) ,
@@ -177,7 +177,6 @@ export default defineComponent({
177177 if ( ! triggerHideAction && trigger . indexOf ( 'contextmenu' ) !== - 1 ) {
178178 triggerHideAction = [ 'click' ] ;
179179 }
180-
181180 const triggerProps = {
182181 ...otherProps ,
183182 prefixCls,
You can’t perform that action at this time.
0 commit comments