1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00
Auto scroll method should not be called when selecting note out of list.
SearchInput bug
This commit is contained in:
Dick Choi
2016-09-08 22:01:27 +09:00
parent 8e7b4d2444
commit 6fc421810f
2 changed files with 7 additions and 5 deletions

View File

@@ -84,6 +84,7 @@ class NoteList extends React.Component {
if (targetIndex > -1) {
let list = this.refs.root
let item = list.childNodes[targetIndex]
if (item == null) return false
let overflowBelow = item.offsetTop + item.clientHeight - list.clientHeight - list.scrollTop > 0
if (overflowBelow) {