Skip to content

Commit

Permalink
unbind label click
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Oct 2, 2016
1 parent 439a711 commit e492ab6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ class Chosen extends AbstractChosen
@container.bind 'click.chosen', (evt) -> evt.preventDefault(); return # gobble click of anchor

destroy: ->
$(@container[0].ownerDocument).unbind "click.chosen", @click_test_action
$(@container[0].ownerDocument).unbind 'click.chosen', @click_test_action
@form_field_label.unbind 'click.chosen' if @form_field_label.length > 0

if @search_field[0].tabIndex
@form_field_jq[0].tabIndex = @search_field[0].tabIndex

Expand Down

0 comments on commit e492ab6

Please # to comment.