Skip to content

Commit

Permalink
fix: menu horizontal mode shaking
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjinzhou committed Mar 2, 2022
1 parent fe0fc80 commit 55e0ad7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/menu/src/PopupTrigger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default defineComponent({
forceSubMenuRender,
motion,
defaultMotions,
mode,
} = useInjectMenu();
const forceRender = useInjectForceRender();
const placement = computed(() =>
Expand Down Expand Up @@ -74,7 +73,7 @@ export default defineComponent({
const style = ref({});
const className = ref('');
const mergedMotion = computed(() => {
const m = motion.value || defaultMotions.value?.[mode.value] || defaultMotions.value?.other;
const m = motion.value || defaultMotions.value?.[props.mode] || defaultMotions.value?.other;
const res = typeof m === 'function' ? m(style, className) : m;
return res ? getTransitionProps(res.name, { css: true }) : undefined;
});
Expand Down

0 comments on commit 55e0ad7

Please sign in to comment.