CreativeIT / getmdl-select

Select for material-design-lite
http://creativeit.github.io/getmdl-select/
MIT License
301 stars 87 forks source link

data-selected "true" is setting wrong selected tag #93

Closed lynnpark closed 5 years ago

lynnpark commented 5 years ago

When I set data-selected to true on a dropdown list item, the wrong list item gets selected, as shown here:

image

jkaan commented 5 years ago

@lynnpark Hi! I ran into this problem myself as well and I think this PR fixes it: #95. You can add this change to your own code already to make it work.

lynnpark commented 5 years ago

@lynnpark Hi! I ran into this problem myself as well and I think this PR fixes it: #95. You can add this change to your own code already to make it work.

This worked! Thank you so much!