mdb-select multi select wrong item marked active


Topic: mdb-select multi select wrong item marked active

ckerbert pro asked 7 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: https://mdbootstrap.com/javascript/material-select/#multiple

ckerbert pro answered 7 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);

Mikołaj Smoleński staff answered 7 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
Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

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