Skip to content

Commit

Permalink
Fixed #9578 - Clearing a p-columnFilter / p-dropdown using "showClear…
Browse files Browse the repository at this point in the history
…" X-button throws a TypeError
  • Loading branch information
yigitfindikli committed Nov 26, 2020
1 parent 33e6b88 commit 2d00a87
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 @@ -4319,7 +4319,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.isOutsideClicked(event)) {
this.hide();
}
Expand Down

0 comments on commit 2d00a87

Please sign in to comment.