diff --git a/components/menu/src/Menu.tsx b/components/menu/src/Menu.tsx index 5dd595ebef..6697e48feb 100644 --- a/components/menu/src/Menu.tsx +++ b/components/menu/src/Menu.tsx @@ -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, diff --git a/components/menu/src/SubMenu.tsx b/components/menu/src/SubMenu.tsx index a641ad69b3..be7292cad7 100644 --- a/components/menu/src/SubMenu.tsx +++ b/components/menu/src/SubMenu.tsx @@ -260,13 +260,13 @@ export default defineComponent({ ); - if (!overflowDisabled.value) { + if (!overflowDisabled.value && mode.value !== 'inline') { const triggerMode = triggerModeRef.value; titleNode = (