Topic: Select field search function not working inside a modal

Denre priority asked 2 years ago

I expect the select field search function to work, even when it's inside a modal

The search option is greyed out but you can select an option

Michał Duszak staff commented 2 years ago

Try adding data-mdb-container="#yourModalID" to your select element.

In your case it's <select class="select" name="product_category" id="product_category" data-mdb-filter="true" data-mdb-container="#imageModal">

Denre priority commented 2 years ago

Thank you, that solved my issue!

Can you tell me where I can find more information about this in the docs?

Michał Duszak staff commented 2 years ago

It's pointed in the Select docs, 'Select with search inside a modal' section. Right here -->

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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: laptop
  • Browser: FireFox
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: Yes