Permalink
Browse files

fix: 解决focus为最后一行,删除最后一行之后重新设置为新的最后一行时无法生效的问题

  • Loading branch information...
LiuYueKai committed Apr 12, 2017
1 parent 170e590 commit f3d0d77bf1ea128617091f3ff5bdf6219970ec0f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rowFocus.js
View
@@ -81,7 +81,7 @@ const updateFocusIndex = function(opIndex, opType, num) {
this.focusIndex(this.focusIndex() + num)
} else if (opType === '-') {
if (this.focusIndex() >= opIndex && this.focusIndex() <= opIndex + num - 1) {
this.focusIndex(this.focusIndex() - 1)
this.focusIndex(-1)
} else if (this.focusIndex() > opIndex + num - 1) {
this.focusIndex(this.focusIndex() - num)
}

0 comments on commit f3d0d77

Please sign in to comment.