Skip to content

Commit

Permalink
perf: menu
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Jun 9, 2021
1 parent 791ae38 commit 6ae707e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/menu/src/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export default defineComponent({
siderCollapsed,
defaultMotions: computed(() => (isMounted.value ? defaultMotions : null)),
motion: computed(() => (isMounted.value ? props.motion : null)),
overflowDisabled: computed(() => props.disabledOverflow),
overflowDisabled: computed(() => undefined),
onOpenChange: onInternalOpenChange,
onItemClick: onInternalClick,
registerMenuInfo,
Expand Down
4 changes: 2 additions & 2 deletions components/menu/src/SubMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ export default defineComponent({
</div>
);

if (!overflowDisabled.value) {
if (!overflowDisabled.value && mode.value !== 'inline') {
const triggerMode = triggerModeRef.value;
titleNode = (
<PopupTrigger
mode={triggerMode}
prefixCls={subMenuPrefixClsValue}
visible={!props.internalPopupClose && open.value && mode.value !== 'inline'}
visible={!props.internalPopupClose && open.value}
popupClassName={popupClassName.value}
popupOffset={props.popupOffset}
disabled={mergedDisabled.value}
Expand Down

0 comments on commit 6ae707e

Please sign in to comment.