Topic: Material Select Console Error closeSelect Event Undefined
The material select works, but it outputs a lot of erros to the console, because the event in the closeSelect function is always undefined.
Following code fixes the issue:
@HostListener(\'document:click\', [\'$event\']) closeSelect(event: any) { if (!this.isChild(event.target) && this.isOpen) { this.closeDropdown(); } };
Rafał Rogulski answered 7 years ago
Closed
This topic is closed.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Closed
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No