fix(form): add elements to Form Registrar Manager when connected
This commit is contained in:
parent
a4f9465e58
commit
3d16dc7b0c
1 changed files with 7 additions and 1 deletions
|
|
@ -28,12 +28,18 @@ export const FormRegistrarMixin = dedupeMixin(
|
|||
this.registrationReady = new Promise(resolve => {
|
||||
this.__resolveRegistrationReady = resolve;
|
||||
});
|
||||
formRegistrarManager.add(this);
|
||||
|
||||
this._onRequestToAddFormElement = this._onRequestToAddFormElement.bind(this);
|
||||
this.addEventListener('form-element-register', this._onRequestToAddFormElement);
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
if (super.connectedCallback) {
|
||||
super.connectedCallback();
|
||||
}
|
||||
formRegistrarManager.add(this);
|
||||
}
|
||||
|
||||
disconnectedCallback() {
|
||||
if (super.disconnectedCallback) {
|
||||
super.disconnectedCallback();
|
||||
|
|
|
|||
Loading…
Reference in a new issue