mirror of
https://github.com/atom/atom.git
synced 2026-02-11 15:14:59 -05:00
Select the first list item after changing the list filter
This commit is contained in:
@@ -52,6 +52,8 @@ class SelectList extends View
|
||||
item.data('select-list-element', element)
|
||||
@list.append(item)
|
||||
|
||||
@selectItem(@list.find('li:first'))
|
||||
|
||||
selectPreviousItem: ->
|
||||
item = @getSelectedItem().prev()
|
||||
item = @list.find('li:last') unless item.length
|
||||
|
||||
Reference in New Issue
Block a user