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;