Topic: Multiselect Search

robertsi77 free asked 2 years ago


I am using Multiselect and Search at the same time.

When I type in the search box and select my desired option, the option that says "Select All" gets selected as well even though I only have one option selected.

Selecting desired option

So, when I try to go and unselect the "Select All" option, my already selected options get unselected too.

I am using the:

data-mdb-filter="true"

multitple

attributes.

Is there anything else I am missing?


Dawid Wajszczuk staff answered 2 years ago


Hi,

The Select All option gets select automatically whenever all the options from current view are checked. When the list of options changes again (by clearing filter) and more unselected options are viewed, it should no longer be selected. And this is exactly what I'm seeing in your demo. Everything is fine.

You can disable Select All by using data-mdb-select-all="false" data attribute. Here is the snippet https://mdbootstrap.com/snippets/standard/d-wajszczuk/3908913.

Keep coding,
Dawid


robertsi77 free commented 2 years ago

Hello,

You can see in my second screenshot how the "Select All" option is selected even when I only selected one of the options.

You mention that:

"When the list of options changes again (by clearing filter) and more unselected options are viewed, it should no longer be selected."

but if you close the select by clicking on it without clearing the filter, the "Select All" option is still selected.


Dawid Wajszczuk staff commented 2 years ago

Hi. Thanks for reporting this. A proper task has been added to our TODO list. Keep coding :)



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Opened

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: Macbook Air
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No