We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eec9067 commit d3801baCopy full SHA for d3801ba
src/features/cellnav/js/cellnav.js
@@ -128,7 +128,7 @@
128
var nextColIndex = curColIndex === 0 ? focusableCols.length - 1 : curColIndex - 1;
129
130
//get column to left
131
- if (nextColIndex > curColIndex) {
+ if (nextColIndex >= curColIndex) {
132
// On the first row
133
// if (curRowIndex === 0 && curColIndex === 0) {
134
// return null;
@@ -160,7 +160,7 @@
160
}
161
var nextColIndex = curColIndex === focusableCols.length - 1 ? 0 : curColIndex + 1;
162
163
- if (nextColIndex < curColIndex) {
+ if (nextColIndex <= curColIndex) {
164
if (curRowIndex === focusableRows.length - 1) {
165
return new GridRowColumn(curRow, focusableCols[nextColIndex]); //return same row
166
0 commit comments