Topic: TypeError: Object doesn't support property or method 'forEach' on mdb-select with [multiple]="true"

ak.leimrey pro asked 5 years ago


Basically what the title says. All the other components work without an issue. However, if [multiple]="true" is added and the uses clicks on the component the browser outputs an error in the console - as mentioned in the title - and only then. While it functionally seems to work still, it's not too great that it throws an error to begin with.

EDIT: I added polyfills to cover the issue of forEach which worked, otherwise basically half of my application wouldn't work. 


Arkadiusz Idzikowski staff answered 5 years ago


Some polyfills might be needed when you use IE11. We don't support this browser (we try to make our components work on all browser but some functionalities might not work properly on the older ones).


ak.leimrey pro commented 5 years ago

As mentioned, I already added the polyfills for "forEach". Otherwise my application wouldn't work at all. Is there a chance that the multi-select could be rewritten with a regular for? 


Arkadiusz Idzikowski staff commented 5 years ago

We will definitely check this method and try to use another approach.



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

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: PC
  • Browser: Internet Explorer 11
  • OS: Windows
  • Provided sample code: No
  • Provided link: No