diff --git a/coffee/chosen.jquery.coffee b/coffee/chosen.jquery.coffee index 733db183293..7b24e81346c 100644 --- a/coffee/chosen.jquery.coffee +++ b/coffee/chosen.jquery.coffee @@ -150,7 +150,7 @@ class Chosen extends AbstractChosen test_active_click: (evt) -> - if @container[0] is $(evt.target).closest('.chzn-container')[0] + if @container.is($(evt.target).closest('.chzn-container')) @active_field = true else this.close_field()