Skip to content

Commit 6777a89

Browse files
committed
fix: mu-*-transition memory leak
1 parent d10c827 commit 6777a89

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

‎src/internal/transitions.js‎

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@ export { default as ExpandTransition } from './ExpandTransition';
44
function createTransition (name, mode) {
55
return {
66
name,
7-
functional: true,
8-
render (h, context) {
9-
context.data = context.data || {};
10-
context.data.props = { name, appear: true };
11-
context.data.on = context.data.on || {};
12-
if (!Object.isExtensible(context.data.on)) {
13-
context.data.on = { ...context.data.on };
14-
}
15-
16-
if (mode) context.data.props.mode = mode;
17-
18-
return h('transition', context.data, context.children);
7+
render (h) {
8+
return h('transition', {
9+
props: { name, appear: true, ...this.$attrs },
10+
on: this.$listeners
11+
}, this.$slots.default);
1912
}
2013
};
2114
}

0 commit comments

Comments
 (0)