mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
Debug: Finderから検索して結果が何もなくなってからFinder自体が働かなくなる
This commit is contained in:
@@ -12,6 +12,10 @@ module.exports = React.createClass({
|
|||||||
var index = this.props.articles.indexOf(this.props.currentArticle)
|
var index = this.props.articles.indexOf(this.props.currentArticle)
|
||||||
var el = React.findDOMNode(this)
|
var el = React.findDOMNode(this)
|
||||||
var li = el.querySelectorAll('li')[index]
|
var li = el.querySelectorAll('li')[index]
|
||||||
|
|
||||||
|
if (li == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
var overflowBelow = el.clientHeight + el.scrollTop < li.offsetTop + li.clientHeight
|
var overflowBelow = el.clientHeight + el.scrollTop < li.offsetTop + li.clientHeight
|
||||||
if (overflowBelow) {
|
if (overflowBelow) {
|
||||||
|
|||||||
Reference in New Issue
Block a user