mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
fix event
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user