Toggle: fixed bug with a custom bubbles/composed change event

This commit is contained in:
leekelleher
2024-04-18 09:03:11 +01:00
parent 933e00d9dd
commit ee316e6d39

View File

@@ -40,7 +40,7 @@ export class UmbInputToggleElement extends UUIFormControlMixin(UmbLitElement, ''
#onChange(e: UUIBooleanInputEvent) {
this.checked = e.target.checked;
e.stopPropagation();
this.dispatchEvent(new CustomEvent('change', { bubbles: true, composed: true }));
this.dispatchEvent(new UmbChangeEvent());
}
#updateLabel() {