Skip to content

Commit 0404df0

Browse files
committed
updated input inits
1 parent 18f143d commit 0404df0

File tree

1 file changed

+7
-6
lines changed
  • src/bundle/Resources/public/ts/components/formControls

1 file changed

+7
-6
lines changed

src/bundle/Resources/public/ts/components/formControls/InputText.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ export default class FormControlInputText extends Base {
8282
}
8383
}
8484

85+
initChildren() {
86+
this._labelInstance?.init();
87+
this._inputTextInstance.init();
88+
this._helperTextInstance?.init();
89+
}
90+
8591
initInputListeners() {
8692
this._inputTextInstance.inputElement.addEventListener('input', ({ currentTarget }) => {
8793
if (!(currentTarget instanceof HTMLInputElement)) {
@@ -98,12 +104,7 @@ export default class FormControlInputText extends Base {
98104
init() {
99105
super.init();
100106

101-
this._labelInstance?.init();
102-
this._inputTextInstance.init();
103-
this._helperTextInstance?.init();
104-
107+
this.initChildren();
105108
this.initInputListeners();
106-
// this.initClearBtn();
107-
// this._updateInputPadding();
108109
}
109110
}

0 commit comments

Comments
 (0)