Topic: Multiselect "selected" option cannot be removed

Joachim Schneider priority asked 2 years ago


Expected behavior: Removing a pre-selected value should clear the input field.

Actual behavior: The selected value is still shown inside the input field

Example:

<select class="select" multiple>
  <option value="1">One</option>
  <option selected value="2">Two</option>
</select>
<label class="form-label select-label">Example label</label>

The issue only occurs if the "selected" attribute is used. On a manual selected entry it works as expected. The problem seems to exist since version 3.10.2. Is there any workaround?

Thanks a lot!


Mateusz Lazaru staff commented 2 years ago

Thank you for reporting this issue. I don't think there is any workaround. We will fix this as soon as possible.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.0.0
  • Device: Web
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No