File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -715,16 +715,14 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
715715 }
716716
717717 try {
718- if ( this . nativeDraggable ) {
718+
719+ if ( document . selection ) {
720+ _nextTick ( ( ) => {
721+ document . selection . empty ( ) ;
722+ } ) ;
723+ } else if ( this . nativeDraggable ) {
719724 window . getSelection ( ) . removeAllRanges ( ) ;
720725 }
721- _nextTick ( ( ) => {
722- if ( document . selection ) {
723- document . selection . empty ( ) ;
724- } else if ( ! this . nativeDraggable ) {
725- window . getSelection ( ) . removeAllRanges ( ) ;
726- }
727- } ) ;
728726 } catch ( err ) {
729727 }
730728 } ,
@@ -999,6 +997,8 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
999997
1000998 moved = true ;
1001999
1000+ window . getSelection ( ) . removeAllRanges ( ) ;
1001+
10021002 if ( Safari ) {
10031003 css ( document . body , 'user-select' , 'none' ) ;
10041004 }
You can’t perform that action at this time.
0 commit comments