mousemke / flounder

Style-able dropdown replacement for native dropdowns
MIT License
9 stars 10 forks source link

[Build] “extraClass” for default option doesn’t get added to “refs.selectedDisplayed” #189

Closed conor-cafferkey-sociomantic closed 6 years ago

conor-cafferkey-sociomantic commented 6 years ago

Currently

When extraClass is specified for a given option, that class gets added to both that option’s div in the dropdown and the refs.selectedDisplayed div.

Problem

If the default option (i.e. the first option in the dropdown) is initially selected it doesn’t get the extraClass specified for that option.

Wanted

Add the extraClass when constructing the refs.selectedDisplayed div in the buildDom() method.