Browse Source

fix: cell saving

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/1817/head
mertmit 3 years ago
parent
commit
0b6870b71b
  1. 1
      packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue
  2. 2
      packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

1
packages/nc-gui/components/project/spreadsheet/rowsXcDataTable.vue

@ -1140,6 +1140,7 @@ export default {
// return if there is no change // return if there is no change
if ( if (
!column || !column ||
saving ||
(oldRow[column.title] === rowObj[column.title] && (oldRow[column.title] === rowObj[column.title] &&
(lastSave || rowObj[column.title]) === rowObj[column.title]) (lastSave || rowObj[column.title]) === rowObj[column.title])
) { ) {

2
packages/nc-gui/components/project/spreadsheet/views/xcGridView.vue

@ -245,7 +245,7 @@
:is-locked="isLocked" :is-locked="isLocked"
:is-public="isPublicView" :is-public="isPublicView"
:view-id="viewId" :view-id="viewId"
@save="editEnabled = {}" @save="editEnabled = {}; onCellValueChange(col, row, columnObj, true);"
@cancel="editEnabled = {}" @cancel="editEnabled = {}"
@update="onCellValueChange(col, row, columnObj, false)" @update="onCellValueChange(col, row, columnObj, false)"
@blur="onCellValueChange(col, row, columnObj, true)" @blur="onCellValueChange(col, row, columnObj, true)"

Loading…
Cancel
Save