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


Hi, Thanks for fix, we will add it in next release. Regards

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags