Fix reselecting option doesn't trigger 'change' event. #667

Closed
wants to merge 1 commit into
from
@@ -322,6 +322,7 @@ class Chosen extends AbstractChosen
results_reset: ->
@form_field.options[0].selected = true
+ @current_value = @form_field_jq.val()
@selected_item.find("span").text @default_text
@selected_item.addClass("chzn-default") if not @is_multiple
this.show_search_field_default()
@@ -314,6 +314,7 @@ class Chosen extends AbstractChosen
results_reset: ->
@form_field.options[0].selected = true
+ @current_value = @form_field.value
@selected_item.down("span").update(@default_text)
@selected_item.addClassName("chzn-default") if not @is_multiple
this.show_search_field_default()