File tree 1 file changed +5
-0
lines changed
packages/frontend/components/tag-input
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import TagInput from "@accessible-components/tag-input";
2
2
3
3
export const TagInputFieldComponent = class extends HTMLElement {
4
4
connectedCallback ( ) {
5
+ this . $errorMessage = this . querySelector ( ".error-message" ) ;
5
6
this . $hint = this . querySelector ( ".hint" ) ;
6
7
this . $replacedLabel = this . querySelector ( ".label" ) ;
7
8
this . $replacedInput = this . querySelector ( ".input" ) ;
@@ -30,6 +31,10 @@ export const TagInputFieldComponent = class extends HTMLElement {
30
31
this . insertBefore ( this . $hint , this . querySelector ( ".tag-input" ) ) ;
31
32
}
32
33
34
+ if ( this . $errorMessage ) {
35
+ this . insertBefore ( this . $errorMessage , this . querySelector ( ".tag-input" ) ) ;
36
+ }
37
+
33
38
this . querySelector ( ".tag-input-label" ) . classList . add ( "label" ) ;
34
39
35
40
this . $replacedLabel . remove ( ) ;
You can’t perform that action at this time.
0 commit comments