Topic: Label hides selection in MD Bootstrap Select
Hi,
My select element does not show the selected option on load. It only show the label, which has not been set to active.
When I open the dropdown I can see that the correct option is selected (its also correctly submitted in the form). First after clicking another option the label transitions to its correct position and the form shows the selected option.
I'm using MD Pro 4.8.0
My HTML:
<select class="mdb-select md-form colorful-select dropdown-primary">
<option value="1">Option 1</option>
<option value="2" selected="selected">Option 2</option>
</select>
<label class="mdb-main-label">Blue select</label>
Not showing the selected option:
Marta Szymanska staff pro premium answered 6 years ago
Hi,
A material-select is a premium component, and according to our system, you use MDB Free version.
Please, provide us a number o your order or registered email to confirm your access to MDB Pro components and premium support.
Send it to me on email: m.szymanska@mdbootstrap.com
Best, Marta
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No