Skip to content

Commit c7c36be

Browse files
Adjusting rootcontainer value
1 parent 7c72d43 commit c7c36be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vuedraggable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ const draggableComponent = defineComponent({
203203
if (!transitionMode) {
204204
return $el;
205205
}
206-
const {children} = $el;
206+
const { children } = $el;
207207
if (children.length !== 1) {
208208
return $el;
209209
}
210210
const firstChild = children.item(0);
211-
return firstChild.tagName !== "text" ? firstChild : $el;
211+
return !!firstChild.__vnode.transition ? $el : firstChild;
212212
},
213213

214214
realList() {

0 commit comments

Comments
 (0)