Et2Select: Fix double change event

Caused double submit (which failed) in infolog when you changed type
This commit is contained in:
nathan 2022-06-08 14:01:00 -06:00
parent 0188e6df2d
commit b7258692a4

View File

@ -115,7 +115,6 @@ export class Et2Select extends Et2WithSearchMixin(Et2InvokerMixin(Et2WidgetWithS
this.getUpdateComplete().then(() => this.getUpdateComplete().then(() =>
{ {
this.addEventListener("sl-clear", this._triggerChange) this.addEventListener("sl-clear", this._triggerChange)
this.addEventListener("sl-select", this._triggerChange);
this.addEventListener("sl-change", this._triggerChange); this.addEventListener("sl-change", this._triggerChange);
}); });
} }
@ -125,7 +124,7 @@ export class Et2Select extends Et2WithSearchMixin(Et2InvokerMixin(Et2WidgetWithS
super.disconnectedCallback(); super.disconnectedCallback();
this.removeEventListener("sl-clear", this._triggerChange) this.removeEventListener("sl-clear", this._triggerChange)
this.removeEventListener("sl-select", this._triggerChange); this.removeEventListener("sl-change", this._triggerChange);
} }
firstUpdated(changedProperties) firstUpdated(changedProperties)