Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix not being able to reselect same option after resetting

  • Loading branch information...
commit 82b8e5011de0051af33eb9571e60b6c170a4bdbb 1 parent dc024d7
@ryanwilliams authored
Showing with 2 additions and 0 deletions.
  1. +1 −0  coffee/chosen.jquery.coffee
  2. +1 −0  coffee/chosen.proto.coffee
View
1  coffee/chosen.jquery.coffee
@@ -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()
View
1  coffee/chosen.proto.coffee
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.