fix event

This commit is contained in:
konnorrogers
2025-06-13 12:48:56 -04:00
parent 166516cc95
commit f431db6d42

View File

@@ -485,9 +485,7 @@ export default class WaSlider extends WebAwesomeFormAssociatedElement {
this.hideTooltip();
}
this.customStates.set('focused', false);
this.updateComplete.then(() => {
this.dispatchEvent(new FocusEvent('blur', { bubbles: true, composed: true }));
});
this.dispatchEvent(new FocusEvent('blur', { bubbles: true, composed: true }));
}
private handleFocus(event: FocusEvent) {
@@ -506,9 +504,7 @@ export default class WaSlider extends WebAwesomeFormAssociatedElement {
}
this.customStates.set('focused', true);
this.updateComplete.then(() => {
this.dispatchEvent(new FocusEvent('focus', { bubbles: true, composed: true }));
});
this.dispatchEvent(new FocusEvent('focus', { bubbles: true, composed: true }));
}
private handleKeyDown(event: KeyboardEvent) {