MaiXinRong 7 月之前
父節點
當前提交
2ce720f8ae
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      app/public/js/ledger.js
  2. 1 0
      app/public/js/revise.js

+ 1 - 0
app/public/js/ledger.js

@@ -547,6 +547,7 @@ $(document).ready(function() {
                 };
                 // 未改变值则不提交
                 const orgValue = node[col.field];
+                if (info.editingText === null) info.editingText = '';
                 const newValue = col.wordWrap ? info.editingText : trimInvalidChar(info.editingText);
                 if (orgValue == info.editingText || ((!orgValue || orgValue === '') && (newValue === ''))) {
                     return;

+ 1 - 0
app/public/js/revise.js

@@ -532,6 +532,7 @@ $(document).ready(() => {
                 };
                 // 未改变值则不提交
                 const orgValue = node[col.field];
+                if (info.editingText === null) info.editingText = '';
                 const newValue = col.wordWrap ? info.editingText : trimInvalidChar(info.editingText);
                 if (orgValue == info.editingText || ((!orgValue || orgValue === '') && (newValue === ''))) {
                     return;