We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc8508 commit ca4fae7Copy full SHA for ca4fae7
js/core/filterMenu.ts
@@ -460,12 +460,10 @@ export class InteractiveFilterDialog extends BoxPanel {
460
*/
461
protected _evtMouseDown(event: MouseEvent) {
462
// Close the menu if a click is detected anywhere else
463
- if (!ElementExt.hitTest(this.node, event.clientX, event.clientY)) {
464
- // FireFox will register a click event for an ephemeral Option element,
465
- // and the hitTest will have x,y coordinates of (0,0).
466
- if ((event.target as HTMLElement).tagName === 'OPTION') {
467
- return;
468
- }
+ if (
+ !ElementExt.hitTest(this.node, event.clientX, event.clientY) &&
+ !this.node.contains(event.target as HTMLElement)
+ ) {
469
this.close();
470
}
471
0 commit comments