Skip to content

Commit 3393f0e

Browse files
committedDec 19, 2018
fix: Menu flashing problem when change collapse = true and change openKeys = []
1 parent cffef39 commit 3393f0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎components/menu/index.jsx

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ const Menu = {
105105
this.setState({ sOpenKeys: this.inlineOpenKeys })
106106
this.inlineOpenKeys = []
107107
}
108+
} else if (val) {
109+
// 缩起时,openKeys置为空的动画会闪动,react可以通过是否传递openKeys避免闪动,vue不是很方便动态传递openKeys
110+
this.switchingModeFromInline = true
108111
}
109112
},
110113
restoreModeVerticalFromInline () {

0 commit comments

Comments
 (0)
Please sign in to comment.