diff --git a/components/_util/transition.tsx b/components/_util/transition.tsx index 029fe22c3..32e02497e 100644 --- a/components/_util/transition.tsx +++ b/components/_util/transition.tsx @@ -44,7 +44,9 @@ if (process.env.NODE_ENV === 'test') { Transition = (_, { slots }) => { return slots.default?.(); }; + Transition.inheritAttrs = false; TransitionGroup = defineComponent({ + inheritAttrs: false, props: ['tag', 'class'], setup(props, { slots }) { const { tag: Tag = Fragment, ...rest } = props;