Skip to content

Commit

Permalink
Change search_text to use option.text rather than option.html
Browse files Browse the repository at this point in the history
  • Loading branch information
simonexmachina committed Nov 6, 2013
1 parent 28e550a commit 09d757b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class AbstractChosen

unless option.group and not @group_search

option.search_text = if option.group then option.label else option.html
option.search_text = if option.group then option.label else option.text
option.search_match = this.search_string_match(option.search_text, regex)
results += 1 if option.search_match and not option.group

Expand Down

1 comment on commit 09d757b

@philfreo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure whether or not this is related, but there's an XSS issue in 1.2.0 #2132

Please sign in to comment.