From ff2d2357aab8ccc60e16e29fb5ffcbc4c0f4b020 Mon Sep 17 00:00:00 2001 From: Wojciech Szymanski <141330+wszymanski@users.noreply.github.com> Date: Thu, 23 Jul 2020 11:05:36 +0200 Subject: [PATCH] Missing changes #7031 --- handsontable.d.ts | 4 ++-- src/editors/textEditor.js | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/handsontable.d.ts b/handsontable.d.ts index 5c5c21dcfb4..5c6f785ed38 100644 --- a/handsontable.d.ts +++ b/handsontable.d.ts @@ -85,7 +85,7 @@ declare namespace _Handsontable { isColumnModificationAllowed(): boolean; isDestroyed: boolean isEmptyCol(col: number): boolean; - isEmptyRow(row: number): boolean;; + isEmptyRow(row: number): boolean; isListening(): boolean; isRedoAvailable(): boolean; isUndoAvailable(): boolean; @@ -174,7 +174,7 @@ declare namespace Handsontable { /** * The default sources for which the table triggers hooks. */ - type ChangeSource = 'auto' | 'edit' | 'loadData' | 'populateFromArray' | 'spliceCol' | 'spliceRow' | 'timeValidate' | 'dateValidate' | 'validateCells' | 'Autofill.fill' | 'Autofill.fill' | 'ContextMenu.clearColumns' | 'ContextMenu.columnLeft' | 'ContextMenu.columnRight' | 'ContextMenu.removeColumn' | 'ContextMenu.removeRow' | 'ContextMenu.rowAbove' | 'ContextMenu.rowBelow' | 'CopyPaste.paste' | 'ObserveChanges.change' | 'UndoRedo.redo' | 'UndoRedo.undo' | 'GantChart.loadData' | 'ColumnSummary.set' | 'ColumnSummary.reset'; + type ChangeSource = 'auto' | 'edit' | 'loadData' | 'populateFromArray' | 'spliceCol' | 'spliceRow' | 'timeValidate' | 'dateValidate' | 'validateCells' | 'Autofill.fill' | 'Autofill.fill' | 'ContextMenu.clearColumns' | 'ContextMenu.columnLeft' | 'ContextMenu.columnRight' | 'ContextMenu.removeColumn' | 'ContextMenu.removeRow' | 'ContextMenu.rowAbove' | 'ContextMenu.rowBelow' | 'CopyPaste.paste' | 'ObserveChanges.change' | 'UndoRedo.redo' | 'UndoRedo.undo' | 'ColumnSummary.set' | 'ColumnSummary.reset'; /** * The default cell type aliases the table has built-in. diff --git a/src/editors/textEditor.js b/src/editors/textEditor.js index 5a50318beb9..0b6e50d4831 100644 --- a/src/editors/textEditor.js +++ b/src/editors/textEditor.js @@ -306,8 +306,7 @@ class TextEditor extends BaseEditor { */ refreshValue() { const physicalRow = this.hot.toPhysicalRow(this.row); - const physicalColumn = this.hot.toPhysicalColumn(this.col); - const sourceData = this.hot.getSourceDataAtCell(physicalRow, physicalColumn); + const sourceData = this.hot.getSourceDataAtCell(physicalRow, this.prop); this.originalValue = sourceData; this.setValue(sourceData);