Skip to content

Commit

Permalink
fix: submenu active class not work when click
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed May 24, 2020
1 parent 4187ea6 commit ffc002f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion components/_util/store/connect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export default function connect(mapStateToProps) {
},
},
render() {
this.preProps = { ...this.$props };
const { $slots = {}, $scopedSlots, subscribed, store } = this;
const props = getOptionProps(this);
this.preProps = { ...omit(props, ['__propsSymbol__']) };
Expand Down
5 changes: 3 additions & 2 deletions components/menu/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ const Menu = {
const { layoutSiderContext, $slots } = this;
const { collapsedWidth } = layoutSiderContext;
const { getPopupContainer: getContextPopupContainer } = this.configProvider;
const { prefixCls: customizePrefixCls, theme, getPopupContainer } = this.$props;
const props = getOptionProps(this);
const { prefixCls: customizePrefixCls, theme, getPopupContainer } = props;
const getPrefixCls = this.configProvider.getPrefixCls;
const prefixCls = getPrefixCls('menu', customizePrefixCls);
const menuMode = this.getRealMenuMode();
Expand All @@ -235,7 +236,7 @@ const Menu = {

const menuProps = {
props: {
...omit(this.$props, ['inlineCollapsed']),
...omit(props, ['inlineCollapsed']),
getPopupContainer: getPopupContainer || getContextPopupContainer,
openKeys: this.sOpenKeys,
mode: menuMode,
Expand Down

0 comments on commit ffc002f

Please sign in to comment.