kopia lustrzana https://github.com/shoelace-style/shoelace
Fix typo in comment
rodzic
8b7b7ee319
commit
2aa0f83e6a
|
@ -243,7 +243,7 @@ export class Dropdown {
|
|||
}
|
||||
|
||||
handleDocumentMouseDown(event: MouseEvent) {
|
||||
// Close when clicking outside of the close element
|
||||
// Close when clicking outside of the containing element
|
||||
const path = event.composedPath() as Array<EventTarget>;
|
||||
if (!path.includes(this.containingElement)) {
|
||||
this.hide();
|
||||
|
|
Ładowanie…
Reference in New Issue