Fixed right arrow keyboard navigation selecting all subnodes rather than first

This commit is contained in:
Djamil Legato
2019-06-06 18:59:33 -07:00
parent 3bc8783b53
commit d1075f0b8b

View File

@@ -174,7 +174,7 @@ class Finder {
target = item.next();
} else if (direction === 'right' && column.next().length) {
column = column.next();
target = column.find(`.${this.config.className.item}`);
target = column.find(`.${this.config.className.item}`).first();
} else if (direction === 'left' && column.prev().length) {
column = column.prev();
target = column.find(`.${this.config.className.active}`).first() || column.find(`.${this.config.className.item}`);