From 042b040ed536104a7919b67fd1d9a6790ccd59cc Mon Sep 17 00:00:00 2001 From: Eric MORAND Date: Fri, 15 Sep 2023 11:49:59 +0200 Subject: [PATCH] fix: check for null not constructor name when query root element (#669) --- src/components/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/html.js b/src/components/html.js index d2ef86d5..6e8a7127 100644 --- a/src/components/html.js +++ b/src/components/html.js @@ -48,7 +48,7 @@ export default function (Glide, Components, Events) { r = document.querySelector(r) } - if (exist(r)) { + if (r !== null) { Html._r = r } else { warn('Root element must be a existing Html node')