Topic: Select fields generating extra inputs.
Aidan Lawson pro premium priority asked a year ago
Using RoR and Simpleform with MDB select inputs.E.g.
<%= f.input :our_dropdown, as: :select, collection: @list_of_something %>
For some reason a "select-wrapper-" div is being generated causing extra select inputs to be shown on the page.
something like:
<div id="select-wrapper-939533" class="select-wrapper">
We don’t know why this is being generated, but it seems to be from MDB… can you tell us what is generating this “select-wrapper” html?
In this example below the top select inputs are being generated, the timezone input is our own
Grzegorz Bujański staff answered a year ago
MDB Select makes this wrapper. Our component works by hiding the native select and adding its own elements. Without it, we wouldn't be able to extend the select's capabilities, e.g. with secondary text and style the dropdown.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.4.1
- Device: Unix
- Browser: Chrome
- OS: Ubuntu
- Provided sample code: No
- Provided link: No