Fix typo in comment

This commit is contained in:
Cory LaViska
2020-09-02 16:59:20 -04:00
parent 8b7b7ee319
commit 2aa0f83e6a

View File

@@ -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();