From 356320cf2bea9128083604fd999863deb72796d8 Mon Sep 17 00:00:00 2001 From: Mario Buikhuizen Date: Wed, 8 Nov 2023 17:12:27 +0100 Subject: [PATCH] fix: prevent warnings about resolving default HTML tags like 'div` --- js/src/VueRenderer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/src/VueRenderer.js b/js/src/VueRenderer.js index 8c325af..a7b17c3 100644 --- a/js/src/VueRenderer.js +++ b/js/src/VueRenderer.js @@ -82,6 +82,11 @@ export function eventToObject(event) { } function resolve(componentOrTag) { + const tagCheck = document.createElement(componentOrTag).toString(); + if (!["[object HTMLUnknownElement]", "[object HTMLElement]"].includes(tagCheck)) { + /* this is a default HTML-tag */ + return componentOrTag; + } try { return Vue.resolveComponent(componentOrTag); } catch (e) {