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 = {
308308 this . instanceArrayKeyIndexMap [ key ] = Object . keys ( this . instanceArrayKeyIndexMap ) . length ;
309309 }
310310 const childListeners = getEvents ( child ) ;
311+ const isSubMenu = child . componentOptions && child . componentOptions . Ctor . options . isSubMenu ;
311312 const newChildProps = {
312313 props : {
313314 mode : childProps . mode || props . mode ,
@@ -333,10 +334,12 @@ const SubPopupMenu = {
333334 ...extraProps ,
334335 } ,
335336 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+ } ,
340343 itemHover : this . onItemHover ,
341344 openChange : this . onOpenChange ,
342345 deselect : this . onDeselect ,
You can’t perform that action at this time.
0 commit comments