Topic: MDB Select (Multiple) JS setValue does not work
Sebastian Sauer
asked a week ago
Expected Behavior
let items = ["0", "1"]; mdbElement.setValue(items);
mdbElement is an mdb select element. This line of code set values in mdb select element. Worked in previous versions (V8). No error is logged in the browser console.
Actual behavior The values are not set at all, options remain unselected
Resources (screenshots, code snippets etc.) Unfortunally snippets seems to be broken at the moment, on reload all elements disappear
Kamila Pieńkowska
staff answered a week ago
I am sorry about the problem with snippets. It is caused by recent changes in Chrome. Please try using Firefox next time. We will try to fix it soon.
The bug with setting the value in multiselect was introduced in version 9.0.0. We will try to fix it as soon as possible.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 9.0.0
- Device: HP ZBook
- Browser: Chrome/Edge/Firefox
- OS: Windows 11 23H2
- Provided sample code: No
- Provided link: No