Skip to content

Commit 90c2ff7

Browse files
committed
Debug: Finderから検索して結果が何もなくなってからFinder自体が働かなくなる
1 parent 4905781 commit 90c2ff7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

browser/finder/Components/FinderList.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = React.createClass({
1212
var index = this.props.articles.indexOf(this.props.currentArticle)
1313
var el = React.findDOMNode(this)
1414
var li = el.querySelectorAll('li')[index]
15+
16+
if (li == null) {
17+
return
18+
}
1519

1620
var overflowBelow = el.clientHeight + el.scrollTop < li.offsetTop + li.clientHeight
1721
if (overflowBelow) {

0 commit comments

Comments
 (0)