Skip to content

Commit ffc002f

Browse files
committed
fix: submenu active class not work when click
1 parent 4187ea6 commit ffc002f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/_util/store/connect.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ export default function connect(mapStateToProps) {
8080
},
8181
},
8282
render() {
83-
this.preProps = { ...this.$props };
8483
const { $slots = {}, $scopedSlots, subscribed, store } = this;
8584
const props = getOptionProps(this);
8685
this.preProps = { ...omit(props, ['__propsSymbol__']) };

components/menu/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ const Menu = {
222222
const { layoutSiderContext, $slots } = this;
223223
const { collapsedWidth } = layoutSiderContext;
224224
const { getPopupContainer: getContextPopupContainer } = this.configProvider;
225-
const { prefixCls: customizePrefixCls, theme, getPopupContainer } = this.$props;
225+
const props = getOptionProps(this);
226+
const { prefixCls: customizePrefixCls, theme, getPopupContainer } = props;
226227
const getPrefixCls = this.configProvider.getPrefixCls;
227228
const prefixCls = getPrefixCls('menu', customizePrefixCls);
228229
const menuMode = this.getRealMenuMode();
@@ -235,7 +236,7 @@ const Menu = {
235236

236237
const menuProps = {
237238
props: {
238-
...omit(this.$props, ['inlineCollapsed']),
239+
...omit(props, ['inlineCollapsed']),
239240
getPopupContainer: getPopupContainer || getContextPopupContainer,
240241
openKeys: this.sOpenKeys,
241242
mode: menuMode,

0 commit comments

Comments
 (0)