-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Table - Column Filters do not close when clicking outside and ChangeDetectionStrategy.OnPush #10692
Comments
As a workaround, you can do this:
|
Hey, is there a fix for the issue already? If no, how can I use the workaround @jaroban
|
Here is my solution, hope it helps you just declare in SharedModule or your Features module and enjoy /**
* Fix issue p-columnFilter isn't hide overlay correctly if parent component use ChangeDetectionStrategy.OnPush
*/
@Directive({
selector: 'p-columnFilter',
})
export class ColumnFilterDirective {
constructor(@Host() @Self() @Optional() public filter: ColumnFilter) {
filter.hide = (): void => {
filter.overlayVisible = false;
filter.dt.cd.markForCheck();
};
}
} |
onSelectCLick(){ |
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
Hi |
Hi, Couldn't replicate the issue with v15 or v14.2.2. If the issue still exist please feel free to re-open by providing a Stackblitz example by using PrimeNG Issue Template |
We're unable to replicate your issue, if you are able to create a reproducer by using PrimeNG Issue Template or add details please edit this issue. This issue will be closed if no activities in 20 days. |
The issue is still in v15.0.1 |
Yes, I confirm that this problem exists with v15.0.1 also. |
Still exists in 2024 |
working in primeng 13 not working on future versions |
For me, in Angular 15 and PrimeNG 15.3.0 it worked. Now with Angular 17.3.1 and PrimeNG 17.12.0 it no longer closes for outside click. |
Multiple similar issues for other components like #2803 #7694
Forum
Minimal reproduction of the problem with instructions
Add filters to a column and set changedetectionstrategy to onpush
Click on a filter
Click next to the pop up menu
-> menu does not close
The text was updated successfully, but these errors were encountered: