Skip to content

Commit

Permalink
Merge pull request #2268 from laantorchaweb/fix_option_disappear
Browse files Browse the repository at this point in the history
Ensure result-selected is applied immediately when selecting an element
  • Loading branch information
pfiller committed Mar 26, 2015
2 parents c4aa372 + f96545b commit cca83d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ class Chosen extends AbstractChosen
else
this.reset_single_select_options()

high.addClass("result-selected")

item = @results_data[ high[0].getAttribute("data-option-array-index") ]
item.selected = true

Expand Down

0 comments on commit cca83d1

Please sign in to comment.