diff --git a/coffee/chosen.jquery.coffee b/coffee/chosen.jquery.coffee index 0054f0e89f0..5ec19f51adb 100644 --- a/coffee/chosen.jquery.coffee +++ b/coffee/chosen.jquery.coffee @@ -325,7 +325,7 @@ class Chosen extends AbstractChosen else this.show_search_field_default() - this.results_hide() if @is_multiple and this.choices_count() > 0 and this.get_search_field_value().length < 1 + this.results_hide() if @is_multiple and this.hide_results_on_select and this.choices_count() > 0 and this.get_search_field_value().length < 1 link.parents('li').first().remove() diff --git a/coffee/chosen.proto.coffee b/coffee/chosen.proto.coffee index 25bd08c9630..24109243feb 100644 --- a/coffee/chosen.proto.coffee +++ b/coffee/chosen.proto.coffee @@ -317,7 +317,7 @@ class @Chosen extends AbstractChosen else this.show_search_field_default() - this.results_hide() if @is_multiple and this.choices_count() > 0 and this.get_search_field_value().length < 1 + this.results_hide() if @is_multiple and this.hide_results_on_select and this.choices_count() > 0 and this.get_search_field_value().length < 1 link.up('li').remove()