Fix missing close cause (#935)
This commit is contained in:
parent
82e203dd76
commit
3ab63f4f55
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user