Skip to content

Commit dc97c19

Browse files
committed
always clear result highlight
1 parent 6638dd7 commit dc97c19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coffee/lib/abstract-chosen.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,10 @@ class AbstractChosen
141141
else if option.group_array_index? and @results_data[option.group_array_index].search_match
142142
option.search_match = true
143143

144+
this.result_clear_highlight()
145+
144146
if results < 1 and searchText.length
145147
this.update_results_content ""
146-
this.result_clear_highlight()
147148
this.no_results searchText
148149
else
149150
this.update_results_content this.results_option_build()

0 commit comments

Comments
 (0)