From 17f0c4f62c4867f164e548200869929654010693 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Tue, 20 Dec 2022 12:34:13 +0400 Subject: [PATCH] Fix D&D in Dragger class. Closes #4792 --- src/utils/Dragger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Dragger.ts b/src/utils/Dragger.ts index b04f309e3..ec735d8de 100644 --- a/src/utils/Dragger.ts +++ b/src/utils/Dragger.ts @@ -398,7 +398,7 @@ export default class Dragger { const { doc } = this.opts; el = el || this.el; - if (!this.docs) { + if (!this.docs.length) { const docs = [document]; el && docs.push(el.ownerDocument); doc && docs.push(doc);