aw-front-helpers 2.5.8 → 2.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/classes/formControl.js +6 -2
- package/package.json +1 -1
package/classes/formControl.js
CHANGED
|
@@ -94,6 +94,10 @@ export default class FormControl {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
update() {
|
|
98
|
+
this._formGrabDom();
|
|
99
|
+
}
|
|
100
|
+
|
|
97
101
|
removeErrors(el = null) {
|
|
98
102
|
this._removeError(el);
|
|
99
103
|
}
|
|
@@ -256,8 +260,8 @@ export default class FormControl {
|
|
|
256
260
|
_formGrabDom() {
|
|
257
261
|
/** @private */
|
|
258
262
|
this._domForm = {};
|
|
259
|
-
this._domForm.inputs = [...this._form.querySelectorAll('input[type=text],input[type=number],input[type=password],input[type=hidden],input[type=search],input[type=email],input[type=tel],
|
|
260
|
-
this._domForm.choices = [...this._form.querySelectorAll('select, input[type=radio],input[type=checkbox]')];
|
|
263
|
+
this._domForm.inputs = [...this._form.querySelectorAll('input[type=text],input[type=number],input[type=password],input[type=hidden],input[type=search],input[type=email],input[type=tel],textarea')];
|
|
264
|
+
this._domForm.choices = [...this._form.querySelectorAll('select, input[type=radio],input[type=checkbox],input[type=file]')];
|
|
261
265
|
this._domForm.els = [...this._domForm.inputs, ...this._domForm.choices];
|
|
262
266
|
}
|
|
263
267
|
|