Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed issue where is was not possible to select the create option usi…

…ng the keyboard
  • Loading branch information...
commit 060a2179190045671248ba8255af8a75e104da05 1 parent 4fe8373
@koenpunt authored
Showing with 4 additions and 0 deletions.
  1. +2 −0  coffee/chosen.jquery.coffee
  2. +2 −0  coffee/chosen.proto.coffee
View
2  coffee/chosen.jquery.coffee
@@ -436,6 +436,8 @@ class Chosen extends AbstractChosen
if @results_showing and @result_highlight
next_sib = @result_highlight.nextAll("li.active-result").first()
this.result_do_highlight next_sib if next_sib
+ else if @results_showing and @create_option
+ this.result_do_highlight(@search_results.find('.create-option'))
else
this.results_show()
View
2  coffee/chosen.proto.coffee
@@ -440,6 +440,8 @@ class @Chosen extends AbstractChosen
if @results_showing and @result_highlight
next_sib = @result_highlight.next('.active-result')
this.result_do_highlight next_sib if next_sib
+ else if @results_showing and @create_option
+ this.result_do_highlight(@search_results.select('.create-option').first())
else
this.results_show()
Please sign in to comment.
Something went wrong with that request. Please try again.