Skip to content

Commit

Permalink
fixed issue where is was not possible to select the create option usi…
Browse files Browse the repository at this point in the history
…ng the keyboard
  • Loading branch information
koenpunt committed Jul 3, 2013
1 parent 71c047e commit 50965c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coffee/chosen.jquery.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,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()

Expand Down
2 changes: 2 additions & 0 deletions coffee/chosen.proto.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,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()

Expand Down

0 comments on commit 50965c3

Please sign in to comment.