-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 encoded values is not finding search match #2248
Comments
Still doesn't work. Type O. E&O should be returned. Fiddle is below. |
@dibiancoj that Fiddle doesn’t work! :) |
I should be more clear. The fiddle throws a script error, and Chosen isn’t initialized. |
Aha, not finding "E&O" for "O" is probably this instead: #1483 |
Try this link |
Looks like you’re just missing an option — See this updated fiddle: http://jsfiddle.net/hpv4La79/7/. I believe it now works as you’re expecting. |
Actually let me pull the changes into my full solution with all my chosen and check if the change worked |
Thanks for your help guys. Everything is working as expected! |
I have a select list item where the text displayed for an option is "E&O". When searched we never find a match.
In Chosen.prototype.get_search_text return $('
I believe we should be returning .text() instead of .html(). This way we aren't searching for html encoded items.
The text was updated successfully, but these errors were encountered: