mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 08:04:11 +08:00
fix(scroll): better check for scrollTo in multiselect list
This commit is contained in:
parent
ae52b89beb
commit
5bd56ff232
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class MultiselectList extends React.Component
|
|||
|
||||
item = React.findDOMNode(@).querySelector(".focused")
|
||||
item ?= React.findDOMNode(@).querySelector(".keyboard-cursor")
|
||||
return unless item
|
||||
return unless item instanceof Node
|
||||
@refs.list.scrollTo(item)
|
||||
|
||||
componentWillUnmount: =>
|
||||
|
|
Loading…
Reference in a new issue