Skip to content

Commit

Permalink
fix: Menu flashing problem when change collapse = true and change o…
Browse files Browse the repository at this point in the history
…penKeys = []
  • Loading branch information
tangjinzhou committed Dec 19, 2018
1 parent cffef39 commit 3393f0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ const Menu = {
this.setState({ sOpenKeys: this.inlineOpenKeys })
this.inlineOpenKeys = []
}
} else if (val) {
// 缩起时,openKeys置为空的动画会闪动,react可以通过是否传递openKeys避免闪动,vue不是很方便动态传递openKeys
this.switchingModeFromInline = true
}
},
restoreModeVerticalFromInline () {
Expand Down

0 comments on commit 3393f0e

Please sign in to comment.