From 2370c7cdc14f862567858d0655fb98dc43a02a56 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 3 Aug 2015 10:41:11 -0700 Subject: [PATCH] fix(scroll): don't scroll to region if node doesn't exist --- src/components/multiselect-list.cjsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/multiselect-list.cjsx b/src/components/multiselect-list.cjsx index b3b0ff663..b303c6ae3 100644 --- a/src/components/multiselect-list.cjsx +++ b/src/components/multiselect-list.cjsx @@ -57,6 +57,7 @@ class MultiselectList extends React.Component item = React.findDOMNode(@).querySelector(".focused") item ?= React.findDOMNode(@).querySelector(".keyboard-cursor") + return unless item @refs.list.scrollTo(item) componentWillUnmount: =>