From c06d51a596fc21d4a442d35ba5b642f081c20f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=9B=BD=E7=92=87?= <37972689+YangGuoXuan-0503@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:26:18 +0800 Subject: [PATCH] fix: longtext saved auto close (#6676) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 杨国璇 --- .../cell-editor/editor-container/popup-editor-container.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/metadata/metadata-view/components/cell-editor/editor-container/popup-editor-container.js b/frontend/src/metadata/metadata-view/components/cell-editor/editor-container/popup-editor-container.js index 9357cba1a9..acedb59999 100644 --- a/frontend/src/metadata/metadata-view/components/cell-editor/editor-container/popup-editor-container.js +++ b/frontend/src/metadata/metadata-view/components/cell-editor/editor-container/popup-editor-container.js @@ -151,8 +151,7 @@ class PopupEditorContainer extends React.Component { } else if (columnType === CellType.MULTIPLE_SELECT) { updated[columnKey] = newValue[columnKey] ? getColumnOptionNamesByIds(column, newValue[columnKey]) : []; } - - this.commitData(updated, true); + this.commitData(updated, columnType !== CellType.LONG_TEXT); }; // This is the updated data obtained by manually clicking the button