Skip to content

Commit

Permalink
fix(Column-Filter): primefaces#13596 Auto close on Click Outside does…
Browse files Browse the repository at this point in the history
… not work
  • Loading branch information
Denny Müller committed Sep 6, 2023
1 parent d7177ab commit 57f4a0b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4965,7 +4965,8 @@ export class ColumnFilter implements AfterContentInit {

private window: Window;

constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public dt: Table, public renderer: Renderer2, public config: PrimeNGConfig, public overlayService: OverlayService) {
constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public dt: Table, public renderer: Renderer2, public config: PrimeNGConfig, public overlayService: OverlayService,
private cd: ChangeDetectorRef) {
this.window = this.document.defaultView as Window;
}

Expand Down Expand Up @@ -5337,6 +5338,7 @@ export class ColumnFilter implements AfterContentInit {

hide() {
this.overlayVisible = false;
this.cd.markForCheck();
}

onOverlayHide() {
Expand Down

0 comments on commit 57f4a0b

Please sign in to comment.