ColumnFilter: doesn't close filter menu on click outside or on scroll with ChangeDetectionStrategy.OnPush #13325
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
Table Filter p-columnfilter does not close after clicking outside of the "Filter Menu" or scrolling when the container component is defined by the OnPush strategy. hide() method is called and overlayVisible changes to false but this is not reflected in the view.
Environment
OS: Windows 10
Chrome Version 114.0.5735.199 (Official Build) (64-bit)
primeng: 14.2.3, 16.0.2
angular: 14.3.0, 16.1.4
Reproducer
https://stackblitz.com/edit/primeng-tablefilter-demo-cgdpzk?file=src%2Fapp%2Fapp.component.ts
Angular version
14.3.0, 16.1.4
PrimeNG version
14.2.3, 16.0.2
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.20.1
Browser(s)
Chrome Version 114.0.5735.199 (Official Build) (64-bit)
Steps to reproduce the behavior
Expected behavior
The "Filter Menu" should be closed by a click from the outside or scroll. The behavior should not differ from ChangeDetectionStrategy.Default.
The text was updated successfully, but these errors were encountered: