Skip to content

Commit ea7a9e6

Browse files
committed
fix: apply context fix for vue 3 transition-group
This implements the fix from @danielsussa. 🙏
1 parent 194c121 commit ea7a9e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/componentStructure.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
const getHtmlElementFromNode = ({ el }) => el;
1+
const getHtmlElementFromNode = node => {
2+
const el =
3+
node.el || (Array.isArray(node.children) && node.children[0].el.parentNode);
4+
return el || {};
5+
};
26
const addContext = (domElement, context) =>
37
(domElement.__draggable_context = context);
48
const getContext = domElement => domElement.__draggable_context;

0 commit comments

Comments
 (0)