提交 dc1c7b7f 编写于 作者: P Phil Hughes

Highlights first row when filtering in dropdowns

上级 1b55e5af
......@@ -214,6 +214,17 @@ class GitLabDropdown
callback: (data) =>
currentIndex = -1
@parseData data
unless @filterInput.val() is ''
selector = '.dropdown-content li:not(.divider):visible'
if @dropdown.find('.dropdown-toggle-page').length
selector = ".dropdown-page-one #{selector}"
$(selector, @dropdown)
.first()
.find('a')
.addClass('is-focused')
enterCallback: (e) =>
@selectRowAtIndex(e, 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册