Skip to content

Commit 104d731

Browse files
committed
1.15.5
1 parent a81251f commit 104d731

7 files changed

+41
-37
lines changed

Sortable.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.4
2+
* Sortable 1.15.5
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -134,7 +134,7 @@
134134
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
135135
}
136136

137-
var version = "1.15.4";
137+
var version = "1.15.5";
138138

139139
function userAgent(pattern) {
140140
if (typeof window !== 'undefined' && window.navigator) {
@@ -1414,13 +1414,13 @@
14141414
on(rootEl, 'dragstart', this._onDragStart);
14151415
}
14161416
try {
1417-
_nextTick(function () {
1418-
if (document.selection) {
1417+
if (document.selection) {
1418+
_nextTick(function () {
14191419
document.selection.empty();
1420-
} else {
1421-
window.getSelection().removeAllRanges();
1422-
}
1423-
});
1420+
});
1421+
} else if (this.nativeDraggable) {
1422+
window.getSelection().removeAllRanges();
1423+
}
14241424
} catch (err) {}
14251425
},
14261426
_dragStarted: function _dragStarted(fallback, evt) {
@@ -1636,6 +1636,7 @@
16361636
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
16371637
on(document, 'selectstart', _this);
16381638
moved = true;
1639+
window.getSelection().removeAllRanges();
16391640
if (Safari) {
16401641
css(document.body, 'user-select', 'none');
16411642
}

Sortable.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modular/sortable.complete.esm.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.4
2+
* Sortable 1.15.5
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -128,7 +128,7 @@ function _nonIterableSpread() {
128128
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129129
}
130130

131-
var version = "1.15.4";
131+
var version = "1.15.5";
132132

133133
function userAgent(pattern) {
134134
if (typeof window !== 'undefined' && window.navigator) {
@@ -1408,13 +1408,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
14081408
on(rootEl, 'dragstart', this._onDragStart);
14091409
}
14101410
try {
1411-
_nextTick(function () {
1412-
if (document.selection) {
1411+
if (document.selection) {
1412+
_nextTick(function () {
14131413
document.selection.empty();
1414-
} else {
1415-
window.getSelection().removeAllRanges();
1416-
}
1417-
});
1414+
});
1415+
} else if (this.nativeDraggable) {
1416+
window.getSelection().removeAllRanges();
1417+
}
14181418
} catch (err) {}
14191419
},
14201420
_dragStarted: function _dragStarted(fallback, evt) {
@@ -1630,6 +1630,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
16301630
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
16311631
on(document, 'selectstart', _this);
16321632
moved = true;
1633+
window.getSelection().removeAllRanges();
16331634
if (Safari) {
16341635
css(document.body, 'user-select', 'none');
16351636
}

modular/sortable.core.esm.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.4
2+
* Sortable 1.15.5
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -128,7 +128,7 @@ function _nonIterableSpread() {
128128
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129129
}
130130

131-
var version = "1.15.4";
131+
var version = "1.15.5";
132132

133133
function userAgent(pattern) {
134134
if (typeof window !== 'undefined' && window.navigator) {
@@ -1408,13 +1408,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
14081408
on(rootEl, 'dragstart', this._onDragStart);
14091409
}
14101410
try {
1411-
_nextTick(function () {
1412-
if (document.selection) {
1411+
if (document.selection) {
1412+
_nextTick(function () {
14131413
document.selection.empty();
1414-
} else {
1415-
window.getSelection().removeAllRanges();
1416-
}
1417-
});
1414+
});
1415+
} else if (this.nativeDraggable) {
1416+
window.getSelection().removeAllRanges();
1417+
}
14181418
} catch (err) {}
14191419
},
14201420
_dragStarted: function _dragStarted(fallback, evt) {
@@ -1630,6 +1630,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
16301630
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
16311631
on(document, 'selectstart', _this);
16321632
moved = true;
1633+
window.getSelection().removeAllRanges();
16331634
if (Safari) {
16341635
css(document.body, 'user-select', 'none');
16351636
}

modular/sortable.esm.js

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**!
2-
* Sortable 1.15.4
2+
* Sortable 1.15.5
33
* @author RubaXa <[email protected]>
44
* @author owenm <[email protected]>
55
* @license MIT
@@ -128,7 +128,7 @@ function _nonIterableSpread() {
128128
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
129129
}
130130

131-
var version = "1.15.4";
131+
var version = "1.15.5";
132132

133133
function userAgent(pattern) {
134134
if (typeof window !== 'undefined' && window.navigator) {
@@ -1408,13 +1408,13 @@ Sortable.prototype = /** @lends Sortable.prototype */{
14081408
on(rootEl, 'dragstart', this._onDragStart);
14091409
}
14101410
try {
1411-
_nextTick(function () {
1412-
if (document.selection) {
1411+
if (document.selection) {
1412+
_nextTick(function () {
14131413
document.selection.empty();
1414-
} else {
1415-
window.getSelection().removeAllRanges();
1416-
}
1417-
});
1414+
});
1415+
} else if (this.nativeDraggable) {
1416+
window.getSelection().removeAllRanges();
1417+
}
14181418
} catch (err) {}
14191419
},
14201420
_dragStarted: function _dragStarted(fallback, evt) {
@@ -1630,6 +1630,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
16301630
_this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
16311631
on(document, 'selectstart', _this);
16321632
moved = true;
1633+
window.getSelection().removeAllRanges();
16331634
if (Safari) {
16341635
css(document.body, 'user-select', 'none');
16351636
}

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sortablejs",
33
"exportName": "Sortable",
4-
"version": "1.15.4",
4+
"version": "1.15.5",
55
"devDependencies": {
66
"@babel/core": "^7.4.4",
77
"@babel/plugin-transform-object-assign": "^7.2.0",

0 commit comments

Comments
 (0)