Skip to content
Browse files

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

…ng the keyboard
  • Loading branch information...
1 parent 4fe8373 commit 060a2179190045671248ba8255af8a75e104da05 @koenpunt committed Jun 21, 2013
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()

0 comments on commit 060a217

Please sign in to comment.
Something went wrong with that request. Please try again.