Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML text in "title" will only render in "multiple" -mode #1440

Closed
jefvhal opened this issue Jul 15, 2016 · 4 comments
Closed

HTML text in "title" will only render in "multiple" -mode #1440

jefvhal opened this issue Jul 15, 2016 · 4 comments

Comments

@jefvhal
Copy link

jefvhal commented Jul 15, 2016

I would like to embed an image (glyphicon) for the "Custom button text". When I choose for "multiple" this works perfect, however, I want to select a single option and that will render the HTML as text...

See fiddle: https://jsfiddle.net/jefvhal/n1mv5jcy/

@perrybush
Copy link

Here's my fix for title/placeholder issue ... did not test with a glyph.

Do a search for ...

if ($opt.attr('selected') === undefined && $opt.prop('selected') === false) {
  titleOption.selected = true;
}

change to ...

if ($opt.attr('selected') === undefined) {
  titleOption.selected = true;
}

@samklonaris
Copy link

+1

@samklonaris
Copy link

I've tested out this fix, and title will still only render in multiple mode

@caseyjhol
Copy link
Member

Can you link me to an example? It's working for me: https://plnkr.co/edit/TNBGUVxbimIwQUXXZ4fU?p=preview. Are you sure you're trying the latest version in master? This isn't part of an official release yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants