File tree 1 file changed +8
-8
lines changed
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 */ {
715
715
}
716
716
717
717
try {
718
- if ( this . nativeDraggable ) {
718
+
719
+ if ( document . selection ) {
720
+ _nextTick ( ( ) => {
721
+ document . selection . empty ( ) ;
722
+ } ) ;
723
+ } else if ( this . nativeDraggable ) {
719
724
window . getSelection ( ) . removeAllRanges ( ) ;
720
725
}
721
- _nextTick ( ( ) => {
722
- if ( document . selection ) {
723
- document . selection . empty ( ) ;
724
- } else if ( ! this . nativeDraggable ) {
725
- window . getSelection ( ) . removeAllRanges ( ) ;
726
- }
727
- } ) ;
728
726
} catch ( err ) {
729
727
}
730
728
} ,
@@ -999,6 +997,8 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
999
997
1000
998
moved = true ;
1001
999
1000
+ window . getSelection ( ) . removeAllRanges ( ) ;
1001
+
1002
1002
if ( Safari ) {
1003
1003
css ( document . body , 'user-select' , 'none' ) ;
1004
1004
}
You can’t perform that action at this time.
0 commit comments