Multiselect: headerCheckboxViewChild not found #14737
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
ViewChild input
headerCheckboxViewChild
withappendTo="body"
and customfilterTemplate
cannot be found since overlay is not a view child.Possible solution:
Please add optional chaining inside
onToggleAll
method sincenativeElement
of undefined.And provide a possibility to pass this custom template checkbox as a
headerCheckboxViewChild
to componentEnvironment
PrimeNG 17.5.0
Reproducer
No response
Angular version
17.1.1
PrimeNG version
17.5.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
filterTemplate
Demo:
https://stackblitz.com/edit/8cwxx3
Expected behavior
No errors in console
The text was updated successfully, but these errors were encountered: