File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -359,8 +359,7 @@ class Chosen extends AbstractChosen
359
359
this .single_set_selected_text (this .choice_label (item))
360
360
361
361
this .results_hide () unless (evt .metaKey or evt .ctrlKey ) and @is_multiple
362
-
363
- @search_field .val " "
362
+ this .show_search_field_default ()
364
363
365
364
@form_field_jq .trigger " change" , {' selected' : @form_field .options [item .options_index ].value } if @is_multiple || @form_field .selectedIndex != @current_selectedIndex
366
365
@current_selectedIndex = @form_field .selectedIndex
Original file line number Diff line number Diff line change @@ -352,8 +352,7 @@ class @Chosen extends AbstractChosen
352
352
this .single_set_selected_text (this .choice_label (item))
353
353
354
354
this .results_hide () unless (evt .metaKey or evt .ctrlKey ) and @is_multiple
355
-
356
- @search_field .value = " "
355
+ this .show_search_field_default ()
357
356
358
357
@form_field .simulate (" change" ) if typeof Event .simulate is ' function' && (@is_multiple || @form_field .selectedIndex != @current_selectedIndex )
359
358
@current_selectedIndex = @form_field .selectedIndex
You can’t perform that action at this time.
0 commit comments