mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
Merge pull request #6520 from G-Chubinidze/gc_SCI_9189
CAPA - Large handson table on bottom of page [SCI-9189]
This commit is contained in:
commit
ba8782b339
1 changed files with 7 additions and 1 deletions
|
@ -146,9 +146,10 @@
|
|||
this.openNameModal();
|
||||
return;
|
||||
}
|
||||
const { row = 0, col = 0 } = this.selectedCell || {};
|
||||
|
||||
this.editingTable = true;
|
||||
this.$nextTick(() => this.tableObject.selectCell(0,0));
|
||||
this.$nextTick(() => this.tableObject.selectCell(row, col));
|
||||
},
|
||||
disableTableEdit() {
|
||||
this.editingTable = false;
|
||||
|
@ -254,6 +255,11 @@
|
|||
afterUnlisten: () => {
|
||||
this.updatingTableData = true;
|
||||
setTimeout(this.updateTable, 100) // delay makes cancel button work
|
||||
},
|
||||
afterSelection: (r, c, r2, c2) => {
|
||||
if (r === r2 && c === c2) {
|
||||
this.selectedCell = { row: r, col: c };
|
||||
}
|
||||
}
|
||||
});
|
||||
this.$nextTick(this.tableObject.render);
|
||||
|
|
Loading…
Reference in a new issue