Topic: Multiselect "selected" option cannot be removed
Joachim Schneider pro premium priority asked 3 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!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- 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
mlazaru staff commented 3 years ago
Thank you for reporting this issue. I don't think there is any workaround. We will fix this as soon as possible.