Skip to content

Commit

Permalink
fix: prevent warnings about resolving default HTML tags like 'div`
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Nov 8, 2023
1 parent 30e9613 commit 356320c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/src/VueRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 356320c

Please sign in to comment.