File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -308,7 +308,6 @@ const SubPopupMenu = {
308
308
this . instanceArrayKeyIndexMap [ key ] = Object . keys ( this . instanceArrayKeyIndexMap ) . length ;
309
309
}
310
310
const childListeners = getEvents ( child ) ;
311
- const isSubMenu = child . componentOptions && child . componentOptions . Ctor . options . isSubMenu ;
312
311
const newChildProps = {
313
312
props : {
314
313
mode : childProps . mode || props . mode ,
@@ -334,12 +333,12 @@ const SubPopupMenu = {
334
333
...extraProps ,
335
334
} ,
336
335
on : {
337
- click : isSubMenu
338
- ? noop
339
- : e => {
340
- ( childListeners . click || noop ) ( e ) ;
341
- this . onClick ( e ) ;
342
- } ,
336
+ click : e => {
337
+ if ( 'keyPath' in e ) {
338
+ ( childListeners . click || noop ) ( e ) ;
339
+ this . onClick ( e ) ;
340
+ }
341
+ } ,
343
342
itemHover : this . onItemHover ,
344
343
openChange : this . onOpenChange ,
345
344
deselect : this . onDeselect ,
You can’t perform that action at this time.
0 commit comments