Topic: Select fields generating extra inputs.

Aidan Lawson priority asked 8 months 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

The top select inputs are being generated, the timezone input is our own


lordsmirn4 free answered 2 days ago


improvements across various touchpoints in the customer journey. The integration with CX initiatives ensures a holistic approach to delivering exceptional customer experiences. https://tellpopeyes1000.shop/


Grzegorz Bujański staff answered 8 months 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.



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: Priority
  • 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