There was an error while loading. Please reload this page.
2 parents 2dc6983 + 0606616 commit 1d9c82bCopy full SHA for 1d9c82b
src/components/ClassicTheme/index.jsx
@@ -45,7 +45,7 @@ class ClassicTheme extends React.PureComponent {
45
46
handleFocusDropdownOnTime() {
47
if (this.props.focusDropdownOnTime) {
48
- this.dropDown.current.scrollTop = this.dropDownActiveTime.current.offsetTop;
+ this.dropDown.current.scrollTop = this.dropDownActiveTime && this.dropDownActiveTime.current && this.dropDownActiveTime.current.offsetTop || 0;
49
}
50
51
0 commit comments