Angular Bootstrap select with \\


Topic: Angular Bootstrap select with \\

setianke asked 7 years ago

I am trying to use Angular Boostrap Select with the configuration options [multiple]=\"true\" and [filterEnabled]=\"true\" but get following error:

SelectComponent.html:4 ERROR TypeError: Cannot read property \'nativeElement\' of undefined

If I only use one of both options they work but not together. I have the pro version.


Damian Gemza staff commented 7 years ago

Dear setianke, That's the right behavior. You can't get multiple and filtering, because, in multiple, there's no search box to find your selects. So when you define [multiple]="true" and [filterEnabled]="true", console throws you an error, that filterInput is not available. That's the right behavior. Material Select is designed to select from few available options. If your list is more complex, please think about using Autocomplete instead of Select: https://mdbootstrap.com/forms/autocomplete/ Best Regards, Damian

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No