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 currentCell = this.findCell(event.target);
|
||||||
let targetCell = this.findPreviousEditableColumn(currentCell);
|
let targetCell = this.findPreviousEditableColumn(currentCell);
|
||||||
|
|
||||||
if (targetCell) {
|
if (targetCell) {
|
||||||
|
await this.$nextTick();
|
||||||
invokeElementMethod(targetCell, 'click');
|
invokeElementMethod(targetCell, 'click');
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
moveToNextCell(event) {
|
async moveToNextCell(event) {
|
||||||
let currentCell = this.findCell(event.target);
|
let currentCell = this.findCell(event.target);
|
||||||
let targetCell = this.findNextEditableColumn(currentCell);
|
let targetCell = this.findNextEditableColumn(currentCell);
|
||||||
|
|
||||||
if (targetCell) {
|
if (targetCell) {
|
||||||
|
await this.$nextTick();
|
||||||
invokeElementMethod(targetCell, 'click');
|
invokeElementMethod(targetCell, 'click');
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue