Topic: Selects and Hidden Options

Andrew Ford priority asked 4 years ago


If someone writes their markup

<select class="form-select select" id="adminarea1" name="adminarea1" data-filter="true">
  <!-- the 'hidden' attribute -->
  <option value="" selected hidden disabled></option>
</select>

Suggestion:

Add .d-none to the current list of classes to the generated markup

<div class="active disabled select-option selected" data-id="option-266986" role="option" aria-selected="true" aria-disabled="true" style="height: 38px;">
  <span class="select-option-text"></span>
</div>

To be

<div class="active d-none disabled select-option selected" data-id="option-266986" role="option" aria-selected="true" aria-disabled="true" style="height: 38px;">
  <span class="select-option-text"></span>
</div>

Arkadiusz Idzikowski staff answered 4 years ago


Thank you for letting us know about this problem. We will fix that in future updates.



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: 1.0.0
  • Device: N/A
  • Browser: N/A
  • OS: N/A
  • Provided sample code: Yes
  • Provided link: No