From 7e6461856314eef32b2382b378405e0cfeb909c0 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sun, 17 Jan 2021 01:53:25 +0300 Subject: [PATCH] Refactor #1655 --- src/components/utils/DomHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/utils/DomHandler.js b/src/components/utils/DomHandler.js index b2ea37ccbb..88fec3c0dd 100644 --- a/src/components/utils/DomHandler.js +++ b/src/components/utils/DomHandler.js @@ -474,7 +474,7 @@ export default class DomHandler { } } - if (overflowCheck(parent)) { + if (parent.nodeType !== 9 && overflowCheck(parent)) { scrollableParents.push(parent); } }