mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
fix bugs
Auto scroll method should not be called when selecting note out of list. SearchInput bug
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user