Skip to content

Commit

Permalink
columnFilter: hide on mousedown instead of click
Browse files Browse the repository at this point in the history
When you do a mouse selection that ends outside the filter frame, with "click"event it close the column filter. This change the event listener to mousedown to avoid this issue.
  • Loading branch information
Wykks authored Dec 20, 2023
1 parent 7f32209 commit 2929368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5484,7 +5484,7 @@ export class ColumnFilter implements AfterContentInit {
if (!this.documentClickListener) {
const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';

this.documentClickListener = this.renderer.listen(documentTarget, 'click', (event) => {
this.documentClickListener = this.renderer.listen(documentTarget, 'mousedown', (event) => {
if (this.overlayVisible && !this.selfClick && this.isOutsideClicked(event)) {
this.hide();
}
Expand Down

0 comments on commit 2929368

Please sign in to comment.