fix(editing): await reactive changes to access the latest cell data
parent
bd0a270b1c
commit
b894556878
|
@ -401,20 +401,22 @@ export default {
|
|||
}
|
||||
}
|
||||
},
|
||||
moveToPreviousCell(event) {
|
||||
async moveToPreviousCell(event) {
|
||||
let currentCell = this.findCell(event.target);
|
||||
let targetCell = this.findPreviousEditableColumn(currentCell);
|
||||
|
||||
if (targetCell) {
|
||||
await this.$nextTick();
|
||||
invokeElementMethod(targetCell, 'click');
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
moveToNextCell(event) {
|
||||
async moveToNextCell(event) {
|
||||
let currentCell = this.findCell(event.target);
|
||||
let targetCell = this.findNextEditableColumn(currentCell);
|
||||
|
||||
if (targetCell) {
|
||||
await this.$nextTick();
|
||||
invokeElementMethod(targetCell, 'click');
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue