瀏覽代碼

修复选中问题

laiguoran 5 年之前
父節點
當前提交
3609b5ca80
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      app/public/js/stage.js

+ 7 - 0
app/public/js/stage.js

@@ -1372,6 +1372,7 @@ $(document).ready(() => {
             let bcontent = $(".bcontent-wrap") ? $(".bcontent-wrap").height() : 0;
             $(".sp-wrap").height(bcontent-30);
             spSpread.refresh();
+            window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
         }
     });
 
@@ -1692,6 +1693,7 @@ $(document).ready(() => {
                 detail.spread.refresh();
             }
             if (checkedChanges) checkedChanges.refresh();
+            window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
         }
     });
 
@@ -1703,12 +1705,16 @@ $(document).ready(() => {
                 detail.spread.refresh();
             }
             $('.zhongjian-msg').height($('#zhongjian .sjs-bottom').height());
+            window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
         }
     });
 
     // 附件加载上下窗口resizer
     $.divResizer({
         select: '#file-spr',
+        callback: function () {
+            window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
+        }
     });
 
     // 变更令加载上下窗口resizer
@@ -1716,6 +1722,7 @@ $(document).ready(() => {
         select: '#change-spr',
         callback: function () {
             if (checkedChanges) checkedChanges.refresh();
+            window.getSelection ? window.getSelection().removeAllRanges() : document.selection.empty();
         }
     });