Skip to content

Commit 1d9c82b

Browse files
authored
Merge pull request #111 from yasserzubair/master
Update index.jsx
2 parents 2dc6983 + 0606616 commit 1d9c82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/ClassicTheme/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ClassicTheme extends React.PureComponent {
4545

4646
handleFocusDropdownOnTime() {
4747
if (this.props.focusDropdownOnTime) {
48-
this.dropDown.current.scrollTop = this.dropDownActiveTime.current.offsetTop;
48+
this.dropDown.current.scrollTop = this.dropDownActiveTime && this.dropDownActiveTime.current && this.dropDownActiveTime.current.offsetTop || 0;
4949
}
5050
}
5151

0 commit comments

Comments
 (0)