Prevented scrolling through suggestion list when there's no suggestions (#3111)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
4353e1fb97
Коммит
e5ec6c95b5
@@ -62,6 +62,10 @@ export default class SuggestionList extends React.Component {
|
||||
|
||||
scrollToItem(term) {
|
||||
const content = this.getContent();
|
||||
if (!content) {
|
||||
return;
|
||||
}
|
||||
|
||||
const visibleContentHeight = content[0].clientHeight;
|
||||
const actualContentHeight = content[0].scrollHeight;
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user