Skip to content

Commit d55e936

Browse files
fix(frontend): check for hint in tag input before insertion
1 parent 8283485 commit d55e936

File tree

1 file changed

+4
-1
lines changed
  • packages/frontend/components/tag-input

1 file changed

+4
-1
lines changed

packages/frontend/components/tag-input/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ export const TagInputFieldComponent = class extends HTMLElement {
2626
tags,
2727
});
2828

29-
this.insertBefore(this.$hint, this.querySelector(".tag-input"));
29+
if (this.$hint) {
30+
this.insertBefore(this.$hint, this.querySelector(".tag-input"));
31+
}
32+
3033
this.querySelector(".tag-input-label").classList.add("label");
3134

3235
this.$replacedLabel.remove();

0 commit comments

Comments
 (0)