Topic: mdb-select multi select wrong item marked active

ckerbert pro asked 5 years ago

Clicking on an item in a mdb-select dropdown when multi-select is enabled causes the previous item to be marked active. This is even happening on the demo site here:

Mikołaj Smoleński staff answered 5 years ago

Hello, Today we are going to update MDB to a new version. This problem is fixed in that release. Please check our page soon. Regards

ckerbert pro answered 5 years ago

Actually the problem is on line 144 of material-select.js
selected = toggleEntryFromArray(valuesSelected, $(this).index() - 1, $select);
should be
selected = toggleEntryFromArray(valuesSelected, $(this).index(), $select);

Please insert min. 20 characters.


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



Specification of the issue

  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No