Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
56e3e1f5
Commit
56e3e1f5
authored
Mar 26, 2019
by
花裤衩
Committed by
hetech
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NavMenu: fix click el-submenu trigger childMenu pop again bug (#14443)
parent
9f19298d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
packages/menu/src/submenu.vue
packages/menu/src/submenu.vue
+5
-4
No files found.
packages/menu/src/submenu.vue
View file @
56e3e1f5
...
...
@@ -178,7 +178,8 @@
}
this
.
dispatch
(
'
ElMenu
'
,
'
submenu-click
'
,
this
);
},
handleMouseenter
(
event
)
{
handleMouseenter
(
event
,
showTimeout
=
this
.
showTimeout
)
{
if
(
!
(
'
ActiveXObject
'
in
window
)
&&
event
.
type
===
'
focus
'
&&
!
event
.
relatedTarget
)
{
return
;
}
...
...
@@ -194,7 +195,7 @@
clearTimeout
(
this
.
timeout
);
this
.
timeout
=
setTimeout
(()
=>
{
this
.
rootMenu
.
openMenu
(
this
.
index
,
this
.
indexPath
);
},
this
.
showTimeout
);
},
showTimeout
);
},
handleMouseleave
()
{
const
{
rootMenu
}
=
this
;
...
...
@@ -274,9 +275,9 @@
ref
=
"
menu
"
v
-
show
=
{
opened
}
class
=
{[
`el-menu--
${
mode
}
`
,
popperClass
]}
on
-
mouseenter
=
{
this
.
handleMouseenter
}
on
-
mouseenter
=
{
(
$event
)
=>
this
.
handleMouseenter
(
$event
,
100
)
}
on
-
mouseleave
=
{
this
.
handleMouseleave
}
on
-
focus
=
{
this
.
handleMouseenter
}
>
on
-
focus
=
{
(
$event
)
=>
this
.
handleMouseenter
(
$event
,
100
)
}
>
<
ul
role
=
"
menu
"
class
=
{[
'
el-menu el-menu--popup
'
,
`el-menu--popup-
${
currentPlacement
}
`
]}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment