Topic: Multiselect Search
robertsi77 free asked 10 months 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.
So, when I try to go and unselect the "Select All" option, my already selected options get unselected too.
I am using the:
Is there anything else I am missing?
Dawid Wajszczuk staff answered 10 months ago
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.
robertsi77 free commented 10 months ago
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 10 months ago
Hi. Thanks for reporting this. A proper task has been added to our TODO list. Keep coding :)
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: 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