Skip to content

Commit

Permalink
perf: menu warning error
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Dec 8, 2020
1 parent 5af2653 commit 520d6a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/vc-menu/MenuItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BaseMixin from '../_util/BaseMixin';
import scrollIntoView from 'dom-scroll-into-view';
import { noop, menuAllProps } from './util';
import { getComponent, getSlot, findDOMNode } from '../_util/props-util';
import { computed, defineComponent, inject, onBeforeUnmount, onMounted } from 'vue';
import { computed, defineComponent, inject, onBeforeUnmount, onMounted, toRaw } from 'vue';
import InjectExtraProps from './InjectExtraProps';
const props = {
attribute: PropTypes.object,
Expand Down Expand Up @@ -119,7 +119,7 @@ const MenuItem = defineComponent({
const info = {
key: eventKey,
keyPath: [eventKey],
item: this,
item: { ...toRaw(this.$props), isSelected },
domEvent: e,
};

Expand Down

0 comments on commit 520d6a5

Please sign in to comment.