File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ 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 ;
311
312
const newChildProps = {
312
313
props : {
313
314
mode : childProps . mode || props . mode ,
@@ -333,10 +334,12 @@ const SubPopupMenu = {
333
334
...extraProps ,
334
335
} ,
335
336
on : {
336
- click : e => {
337
- ( childListeners . click || noop ) ( e ) ;
338
- this . onClick ( e ) ;
339
- } ,
337
+ click : isSubMenu
338
+ ? noop
339
+ : e => {
340
+ ( childListeners . click || noop ) ( e ) ;
341
+ this . onClick ( e ) ;
342
+ } ,
340
343
itemHover : this . onItemHover ,
341
344
openChange : this . onOpenChange ,
342
345
deselect : this . onDeselect ,
You can’t perform that action at this time.
0 commit comments