Skip to content

Commit

Permalink
Merge pull request #1407 from koenpunt/gh-1406
Browse files Browse the repository at this point in the history
Always clear result highlight
  • Loading branch information
pfiller committed Jul 26, 2013
2 parents 412da46 + dc97c19 commit 77efc4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ class AbstractChosen
else if option.group_array_index? and @results_data[option.group_array_index].search_match
option.search_match = true

this.result_clear_highlight()

if results < 1 and searchText.length
this.update_results_content ""
this.result_clear_highlight()
this.no_results searchText
else
this.update_results_content this.results_option_build()
Expand Down

0 comments on commit 77efc4f

Please sign in to comment.