1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-17 03:31:52 +00:00

Merged branch master into master

This commit is contained in:
Dick Choi
2016-08-11 13:38:49 +09:00

View File

@@ -107,11 +107,12 @@ class NoteList extends React.Component {
}) })
if (targetIndex === this.notes.length - 1) { if (targetIndex === this.notes.length - 1) {
return targetIndex = 0
} } else {
targetIndex++ targetIndex++
if (targetIndex < 0) targetIndex = 0 if (targetIndex < 0) targetIndex = 0
else if (targetIndex > this.notes.length - 1) targetIndex === this.notes.length - 1 else if (targetIndex > this.notes.length - 1) targetIndex === this.notes.length - 1
}
router.push({ router.push({
pathname: location.pathname, pathname: location.pathname,