fix(formgroup): wait for formElements to register
_setValueForAllFormElements must wait for formElements to be registered
This commit is contained in:
parent
c2b7766492
commit
780383d081
1 changed files with 4 additions and 1 deletions
|
|
@ -269,7 +269,10 @@ export const FormGroupMixin = dedupeMixin(
|
|||
return result;
|
||||
}
|
||||
|
||||
_setValueForAllFormElements(property, value) {
|
||||
async _setValueForAllFormElements(property, value) {
|
||||
if (!this.__readyForRegistration) {
|
||||
await this.registrationReady;
|
||||
}
|
||||
this.formElements.forEach(el => {
|
||||
el[property] = value; // eslint-disable-line no-param-reassign
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue