Skip to content

Commit

Permalink
fix(components): dropdown
Browse files Browse the repository at this point in the history
first selection bug fixed
  • Loading branch information
gildas bescond committed Dec 23, 2015
1 parent e20ada5 commit a937974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Dropdown = (($) => {

$(parent).toggleClass(ClassName.OPEN)
$(parent).trigger($.Event(Event.SHOWN, relatedTarget))
$(this).parent().find('.dropdown-menu a:first-child').focus()
$(this).parent().find('.dropdown-menu a').first().focus()

return false
}
Expand Down

0 comments on commit a937974

Please sign in to comment.