Fix missing close cause (#935)

This commit is contained in:
toasted-nutbread 2020-10-18 13:00:49 -04:00 committed by GitHub
parent 82e203dd76
commit 3ab63f4f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,14 +48,14 @@ class PopupMenu {
}
close() {
this._close(null);
this._close(null, 'close');
}
// Private
_onMenuContainerClick(e) {
if (e.currentTarget !== e.target) { return; }
this._close(null, 'close');
this._close(null, 'outside');
}
_onMenuItemClick(e) {