kopia lustrzana https://github.com/shoelace-style/shoelace
prettier
rodzic
cb15749500
commit
8473d06822
|
@ -231,7 +231,7 @@ export default class SlSelect extends ShoelaceElement implements ShoelaceFormCon
|
|||
this.hide();
|
||||
this.displayInput.focus({ preventScroll: true });
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
root.addEventListener('focusin', this.handleDocumentFocusIn);
|
||||
root.addEventListener('keydown', this.handleDocumentKeyDown);
|
||||
|
|
|
@ -186,7 +186,9 @@ export default class SlTooltip extends ShoelaceElement {
|
|||
if ('CloseWatcher' in window) {
|
||||
this.closeWatcher?.destroy();
|
||||
this.closeWatcher = new CloseWatcher();
|
||||
this.closeWatcher.onclose = () => { this.hide() };
|
||||
this.closeWatcher.onclose = () => {
|
||||
this.hide();
|
||||
};
|
||||
} else {
|
||||
document.addEventListener('keydown', this.handleDocumentKeyDown);
|
||||
}
|
||||
|
|
|
@ -21,8 +21,8 @@ interface CloseWatcher extends EventTarget {
|
|||
close(): void;
|
||||
destroy(): void;
|
||||
|
||||
oncancel: ((event: Event) => void | null);
|
||||
onclose: ((event: Event) => void | null);
|
||||
oncancel: (event: Event) => void | null;
|
||||
onclose: (event: Event) => void | null;
|
||||
}
|
||||
|
||||
declare const CloseWatcher: CloseWatcher;
|
||||
|
|
Ładowanie…
Reference in New Issue