Skip to content

Commit

Permalink
Merge pull request #1638 from aexmachina/master
Browse files Browse the repository at this point in the history
Change `search_text` to use `option.text` rather than `option.html`
  • Loading branch information
stof committed Mar 16, 2014
2 parents 03df713 + 09d757b commit 35bde75
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 @@ -152,7 +152,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

0 comments on commit 35bde75

Please sign in to comment.