CreativeIT / getmdl-select

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

MDL Select Doesn't work nicely with HTML tags / Material Icons #86

Closed dfsoeten closed 5 years ago

dfsoeten commented 6 years ago

So, my issue is the following: I'm trying to make the select work with HTML / Material Icons like so:

<li class="mdl-menu__item" data-val="red-500" tabindex="-1">
    <i class="material-icons mdl-color-text--red-500">fiber_manual_record</i>Red
</li>

Wich has the following result:

image

But when I select that item it doesn't parse(?) the HTML / Material Icon properly:

image

Any ideas how I can get this to work? 😉

alexbananabob commented 5 years ago

Hi @iamdann, Sorry, but now getmdl-select only supports text values for options. But it is good idea to add custom HTML support. Thank you

dfsoeten commented 5 years ago

Thanks for the update!