websemantics / Image-Select

Image Select is an extension of Chosen, a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. It provides image support for Single and Multi select HTML tags.
http://websemantics.github.io/Image-Select
MIT License
148 stars 44 forks source link

Initial view doesn't show image #10

Closed c-prompt closed 9 years ago

c-prompt commented 9 years ago

When first coming to the page with a list of options (none yet selected), the image does not show in the dropdown: no-image However, as soon as you click the dropdown arrow, you can see the images: no-image-2 After clicking the dropdown arrow and seeing the images, the image now shows on the selected item: no-image-3

bookin commented 9 years ago

I changed the line 49 and it earned var selected = $(option).prop('selected'); to var selected = $(option).prop('selected');

c-prompt commented 9 years ago

Worked. Thanks.