Topic: MULTISELECT selecting INCORRECT ITEMS. Same w/ example on this site.

stageagent pro asked 7 years ago


The bootstrap multi-select input feature is completely broken on our website, the same is happening on your website example here:https://mdbootstrap.com/javascript/bootstrap-multiselect/

If you select the first example WITH a search box, the items selected are correct.

IF you select MULTISELECT WITH LABEL for example, it will select the item ABOVE it.

This is greatly affecting our product use with our search filters making it absolutely impossible to select the correct item.


Mikołaj Smoleński staff answered 7 years ago


Hi, The correct solution is to change in mdb.js code line from selected = toggleEntryFromArray(valuesSelected, $(this).index() – 1, $select) to selected = toggleEntryFromArray(valuesSelected, $(this).index(), $select); We'll fix it in the next release. Regards

edouard free commented 7 years ago

Hello ! Be careful : this fix only works for non searchable Selects ! The correct line should be : selected = toggleEntryFromArray(valuesSelected, $(this).index() - (searchable ? 1 : 0), $select);


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

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