Topic: Material Select Console Error closeSelect Event Undefined
cyleph pro asked 7 years ago
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 free 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
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No