Prevented scrolling through suggestion list when there's no suggestions (#3111)

Этот коммит содержится в:
Harrison Healey
2016-05-26 08:47:58 -04:00
коммит произвёл 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;