From e492ab6e14dea9b0ae36992f248da7eb8aac01f9 Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Sun, 2 Oct 2016 21:54:04 +0200 Subject: [PATCH] unbind label click fixes #2238 --- coffee/chosen.jquery.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coffee/chosen.jquery.coffee b/coffee/chosen.jquery.coffee index 004e0441d6d..8db450ea42f 100644 --- a/coffee/chosen.jquery.coffee +++ b/coffee/chosen.jquery.coffee @@ -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