We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f0498 commit ca13d2cCopy full SHA for ca13d2c
1 file changed
src/Sortable.js
@@ -715,10 +715,13 @@ Sortable.prototype = /** @lends Sortable.prototype */ {
715
}
716
717
try {
718
- _nextTick(function () {
+ if (this.nativeDraggable) {
719
+ window.getSelection().removeAllRanges();
720
+ }
721
+ _nextTick(() => {
722
if (document.selection) {
723
document.selection.empty();
- } else {
724
+ } else if (!this.nativeDraggable) {
725
window.getSelection().removeAllRanges();
726
727
});
0 commit comments