Skip to content

Commit 55e0ad7

Browse files
committed
fix: menu horizontal mode shaking
1 parent fe0fc80 commit 55e0ad7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

components/menu/src/PopupTrigger.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export default defineComponent({
4242
forceSubMenuRender,
4343
motion,
4444
defaultMotions,
45-
mode,
4645
} = useInjectMenu();
4746
const forceRender = useInjectForceRender();
4847
const placement = computed(() =>
@@ -74,7 +73,7 @@ export default defineComponent({
7473
const style = ref({});
7574
const className = ref('');
7675
const mergedMotion = computed(() => {
77-
const m = motion.value || defaultMotions.value?.[mode.value] || defaultMotions.value?.other;
76+
const m = motion.value || defaultMotions.value?.[props.mode] || defaultMotions.value?.other;
7877
const res = typeof m === 'function' ? m(style, className) : m;
7978
return res ? getTransitionProps(res.name, { css: true }) : undefined;
8079
});

0 commit comments

Comments
 (0)