diff --git a/src/components/Item.js b/src/components/Item.js index 4f9b0f4f..dfdd1699 100644 --- a/src/components/Item.js +++ b/src/components/Item.js @@ -10,7 +10,12 @@ class Item extends Component { componentDidMount() { const { props, methods } = this.props; - if (!props.multi && props.keepSelectedInList && methods.isSelected(this.props.item)) + if ( + this.item.current && + !props.multi && + props.keepSelectedInList && + methods.isSelected(this.props.item) + ) this.item.current.scrollIntoView({ block: 'nearest', inline: 'start' }); }