Browse Source

修复选中问题

laiguoran 5 years ago
parent
commit
3609b5ca80
1 changed files with 7 additions and 0 deletions
  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();
         }
     });