You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a select element with options that have numeric values and labels. <select class="dropdown"> <option value="3">1</option> <option value="4" selected="selected">2</option> <option value="5">3</option> <option value="6">4</option> </select>
Initialize dropdown with $('.dropdown').dropdown();
Expected Result
The second option with value "4" should be selected.
Actual Result
The last optioin with label "4" is selected when rendered.
Steps
Create a select element with options that have numeric values and labels.
<select class="dropdown"> <option value="3">1</option> <option value="4" selected="selected">2</option> <option value="5">3</option> <option value="6">4</option> </select>
Initialize dropdown with
$('.dropdown').dropdown();
Expected Result
The second option with value "4" should be selected.
Actual Result
The last optioin with label "4" is selected when rendered.
Version
2.4.1
Testcase
https://jsfiddle.net/wz3d0nre/1/
The text was updated successfully, but these errors were encountered: