MaiXinRong 7 months ago
parent
commit
2ce720f8ae
2 changed files with 2 additions and 0 deletions
  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;