Topic: Select dropdown shows incorrect value if blank
yorkmyers priority asked 2 months ago
In my select dropdown, I'm using a placeholder as a "hack" to get the value of this element.
If a select dropdown has a value upon page load... and you change the value in it to be "blank"... then the placeholder value appears "over" the previous value:
The component is aware that the value should be blank, but that's not what is shown on the screen.
It seems adding
selected attribute causes this issue. Try to use
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 3.11.0
- Device: Desktop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes