sortablejs 1.15.5 → 1.15.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,134 +1,116 @@
1
1
  /**!
2
- * Sortable 1.15.5
2
+ * Sortable 1.15.7
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
6
6
  */
7
- function ownKeys(object, enumerableOnly) {
8
- var keys = Object.keys(object);
9
- if (Object.getOwnPropertySymbols) {
10
- var symbols = Object.getOwnPropertySymbols(object);
11
- if (enumerableOnly) {
12
- symbols = symbols.filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14
- });
15
- }
16
- keys.push.apply(keys, symbols);
17
- }
18
- return keys;
19
- }
20
- function _objectSpread2(target) {
21
- for (var i = 1; i < arguments.length; i++) {
22
- var source = arguments[i] != null ? arguments[i] : {};
23
- if (i % 2) {
24
- ownKeys(Object(source), true).forEach(function (key) {
25
- _defineProperty(target, key, source[key]);
26
- });
27
- } else if (Object.getOwnPropertyDescriptors) {
28
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
29
- } else {
30
- ownKeys(Object(source)).forEach(function (key) {
31
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
32
- });
7
+ function _arrayLikeToArray(r, a) {
8
+ (null == a || a > r.length) && (a = r.length);
9
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
10
+ return n;
11
+ }
12
+ function _arrayWithoutHoles(r) {
13
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
14
+ }
15
+ function _defineProperty(e, r, t) {
16
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
17
+ value: t,
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0
21
+ }) : e[r] = t, e;
22
+ }
23
+ function _extends() {
24
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
25
+ for (var e = 1; e < arguments.length; e++) {
26
+ var t = arguments[e];
27
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
33
28
  }
34
- }
35
- return target;
29
+ return n;
30
+ }, _extends.apply(null, arguments);
36
31
  }
37
- function _typeof(obj) {
38
- "@babel/helpers - typeof";
39
-
40
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
41
- _typeof = function (obj) {
42
- return typeof obj;
43
- };
44
- } else {
45
- _typeof = function (obj) {
46
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
47
- };
32
+ function _iterableToArray(r) {
33
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
34
+ }
35
+ function _nonIterableSpread() {
36
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
+ }
38
+ function ownKeys(e, r) {
39
+ var t = Object.keys(e);
40
+ if (Object.getOwnPropertySymbols) {
41
+ var o = Object.getOwnPropertySymbols(e);
42
+ r && (o = o.filter(function (r) {
43
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
44
+ })), t.push.apply(t, o);
48
45
  }
49
- return _typeof(obj);
50
- }
51
- function _defineProperty(obj, key, value) {
52
- if (key in obj) {
53
- Object.defineProperty(obj, key, {
54
- value: value,
55
- enumerable: true,
56
- configurable: true,
57
- writable: true
46
+ return t;
47
+ }
48
+ function _objectSpread2(e) {
49
+ for (var r = 1; r < arguments.length; r++) {
50
+ var t = null != arguments[r] ? arguments[r] : {};
51
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
52
+ _defineProperty(e, r, t[r]);
53
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
54
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
58
55
  });
59
- } else {
60
- obj[key] = value;
61
56
  }
62
- return obj;
57
+ return e;
63
58
  }
64
- function _extends() {
65
- _extends = Object.assign || function (target) {
66
- for (var i = 1; i < arguments.length; i++) {
67
- var source = arguments[i];
68
- for (var key in source) {
69
- if (Object.prototype.hasOwnProperty.call(source, key)) {
70
- target[key] = source[key];
71
- }
72
- }
73
- }
74
- return target;
75
- };
76
- return _extends.apply(this, arguments);
77
- }
78
- function _objectWithoutPropertiesLoose(source, excluded) {
79
- if (source == null) return {};
80
- var target = {};
81
- var sourceKeys = Object.keys(source);
82
- var key, i;
83
- for (i = 0; i < sourceKeys.length; i++) {
84
- key = sourceKeys[i];
85
- if (excluded.indexOf(key) >= 0) continue;
86
- target[key] = source[key];
87
- }
88
- return target;
89
- }
90
- function _objectWithoutProperties(source, excluded) {
91
- if (source == null) return {};
92
- var target = _objectWithoutPropertiesLoose(source, excluded);
93
- var key, i;
59
+ function _objectWithoutProperties(e, t) {
60
+ if (null == e) return {};
61
+ var o,
62
+ r,
63
+ i = _objectWithoutPropertiesLoose(e, t);
94
64
  if (Object.getOwnPropertySymbols) {
95
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
96
- for (i = 0; i < sourceSymbolKeys.length; i++) {
97
- key = sourceSymbolKeys[i];
98
- if (excluded.indexOf(key) >= 0) continue;
99
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
100
- target[key] = source[key];
101
- }
65
+ var n = Object.getOwnPropertySymbols(e);
66
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
102
67
  }
103
- return target;
104
- }
105
- function _toConsumableArray(arr) {
106
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
107
- }
108
- function _arrayWithoutHoles(arr) {
109
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
110
- }
111
- function _iterableToArray(iter) {
112
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
113
- }
114
- function _unsupportedIterableToArray(o, minLen) {
115
- if (!o) return;
116
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
117
- var n = Object.prototype.toString.call(o).slice(8, -1);
118
- if (n === "Object" && o.constructor) n = o.constructor.name;
119
- if (n === "Map" || n === "Set") return Array.from(o);
120
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
68
+ return i;
69
+ }
70
+ function _objectWithoutPropertiesLoose(r, e) {
71
+ if (null == r) return {};
72
+ var t = {};
73
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
74
+ if (-1 !== e.indexOf(n)) continue;
75
+ t[n] = r[n];
76
+ }
77
+ return t;
78
+ }
79
+ function _toConsumableArray(r) {
80
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
81
+ }
82
+ function _toPrimitive(t, r) {
83
+ if ("object" != typeof t || !t) return t;
84
+ var e = t[Symbol.toPrimitive];
85
+ if (void 0 !== e) {
86
+ var i = e.call(t, r || "default");
87
+ if ("object" != typeof i) return i;
88
+ throw new TypeError("@@toPrimitive must return a primitive value.");
89
+ }
90
+ return ("string" === r ? String : Number)(t);
121
91
  }
122
- function _arrayLikeToArray(arr, len) {
123
- if (len == null || len > arr.length) len = arr.length;
124
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
125
- return arr2;
92
+ function _toPropertyKey(t) {
93
+ var i = _toPrimitive(t, "string");
94
+ return "symbol" == typeof i ? i : i + "";
126
95
  }
127
- function _nonIterableSpread() {
128
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
96
+ function _typeof(o) {
97
+ "@babel/helpers - typeof";
98
+
99
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
100
+ return typeof o;
101
+ } : function (o) {
102
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
103
+ }, _typeof(o);
104
+ }
105
+ function _unsupportedIterableToArray(r, a) {
106
+ if (r) {
107
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
108
+ var t = {}.toString.call(r).slice(8, -1);
109
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
110
+ }
129
111
  }
130
112
 
131
- var version = "1.15.5";
113
+ var version = "1.15.7";
132
114
 
133
115
  function userAgent(pattern) {
134
116
  if (typeof window !== 'undefined' && window.navigator) {
@@ -171,7 +153,7 @@ function matches( /**HTMLElement*/el, /**String*/selector) {
171
153
  return false;
172
154
  }
173
155
  function getParentOrHost(el) {
174
- return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
156
+ return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
175
157
  }
176
158
  function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
177
159
  if (el) {
@@ -1121,7 +1103,8 @@ function Sortable(el, options) {
1121
1103
  x: 0,
1122
1104
  y: 0
1123
1105
  },
1124
- supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1106
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1107
+ supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
1125
1108
  emptyInsertThreshold: 5
1126
1109
  };
1127
1110
  PluginManager.initializePlugins(this, el, defaults);
@@ -1412,7 +1395,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
1412
1395
  _nextTick(function () {
1413
1396
  document.selection.empty();
1414
1397
  });
1415
- } else if (this.nativeDraggable) {
1398
+ } else {
1416
1399
  window.getSelection().removeAllRanges();
1417
1400
  }
1418
1401
  } catch (err) {}
@@ -2054,8 +2037,11 @@ Sortable.prototype = /** @lends Sortable.prototype */{
2054
2037
  _nulling: function _nulling() {
2055
2038
  pluginEvent('nulling', this);
2056
2039
  rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
2057
- savedInputChecked.forEach(function (el) {
2058
- el.checked = true;
2040
+ var el = this.el;
2041
+ savedInputChecked.forEach(function (checkEl) {
2042
+ if (el.contains(checkEl)) {
2043
+ checkEl.checked = true;
2044
+ }
2059
2045
  });
2060
2046
  savedInputChecked.length = lastDx = lastDy = 0;
2061
2047
  },
@@ -1,134 +1,116 @@
1
1
  /**!
2
- * Sortable 1.15.5
2
+ * Sortable 1.15.7
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
6
6
  */
7
- function ownKeys(object, enumerableOnly) {
8
- var keys = Object.keys(object);
9
- if (Object.getOwnPropertySymbols) {
10
- var symbols = Object.getOwnPropertySymbols(object);
11
- if (enumerableOnly) {
12
- symbols = symbols.filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14
- });
15
- }
16
- keys.push.apply(keys, symbols);
17
- }
18
- return keys;
19
- }
20
- function _objectSpread2(target) {
21
- for (var i = 1; i < arguments.length; i++) {
22
- var source = arguments[i] != null ? arguments[i] : {};
23
- if (i % 2) {
24
- ownKeys(Object(source), true).forEach(function (key) {
25
- _defineProperty(target, key, source[key]);
26
- });
27
- } else if (Object.getOwnPropertyDescriptors) {
28
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
29
- } else {
30
- ownKeys(Object(source)).forEach(function (key) {
31
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
32
- });
7
+ function _arrayLikeToArray(r, a) {
8
+ (null == a || a > r.length) && (a = r.length);
9
+ for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
10
+ return n;
11
+ }
12
+ function _arrayWithoutHoles(r) {
13
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
14
+ }
15
+ function _defineProperty(e, r, t) {
16
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
17
+ value: t,
18
+ enumerable: !0,
19
+ configurable: !0,
20
+ writable: !0
21
+ }) : e[r] = t, e;
22
+ }
23
+ function _extends() {
24
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
25
+ for (var e = 1; e < arguments.length; e++) {
26
+ var t = arguments[e];
27
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
33
28
  }
34
- }
35
- return target;
29
+ return n;
30
+ }, _extends.apply(null, arguments);
36
31
  }
37
- function _typeof(obj) {
38
- "@babel/helpers - typeof";
39
-
40
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
41
- _typeof = function (obj) {
42
- return typeof obj;
43
- };
44
- } else {
45
- _typeof = function (obj) {
46
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
47
- };
32
+ function _iterableToArray(r) {
33
+ if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
34
+ }
35
+ function _nonIterableSpread() {
36
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
37
+ }
38
+ function ownKeys(e, r) {
39
+ var t = Object.keys(e);
40
+ if (Object.getOwnPropertySymbols) {
41
+ var o = Object.getOwnPropertySymbols(e);
42
+ r && (o = o.filter(function (r) {
43
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
44
+ })), t.push.apply(t, o);
48
45
  }
49
- return _typeof(obj);
50
- }
51
- function _defineProperty(obj, key, value) {
52
- if (key in obj) {
53
- Object.defineProperty(obj, key, {
54
- value: value,
55
- enumerable: true,
56
- configurable: true,
57
- writable: true
46
+ return t;
47
+ }
48
+ function _objectSpread2(e) {
49
+ for (var r = 1; r < arguments.length; r++) {
50
+ var t = null != arguments[r] ? arguments[r] : {};
51
+ r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
52
+ _defineProperty(e, r, t[r]);
53
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
54
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
58
55
  });
59
- } else {
60
- obj[key] = value;
61
56
  }
62
- return obj;
57
+ return e;
63
58
  }
64
- function _extends() {
65
- _extends = Object.assign || function (target) {
66
- for (var i = 1; i < arguments.length; i++) {
67
- var source = arguments[i];
68
- for (var key in source) {
69
- if (Object.prototype.hasOwnProperty.call(source, key)) {
70
- target[key] = source[key];
71
- }
72
- }
73
- }
74
- return target;
75
- };
76
- return _extends.apply(this, arguments);
77
- }
78
- function _objectWithoutPropertiesLoose(source, excluded) {
79
- if (source == null) return {};
80
- var target = {};
81
- var sourceKeys = Object.keys(source);
82
- var key, i;
83
- for (i = 0; i < sourceKeys.length; i++) {
84
- key = sourceKeys[i];
85
- if (excluded.indexOf(key) >= 0) continue;
86
- target[key] = source[key];
87
- }
88
- return target;
89
- }
90
- function _objectWithoutProperties(source, excluded) {
91
- if (source == null) return {};
92
- var target = _objectWithoutPropertiesLoose(source, excluded);
93
- var key, i;
59
+ function _objectWithoutProperties(e, t) {
60
+ if (null == e) return {};
61
+ var o,
62
+ r,
63
+ i = _objectWithoutPropertiesLoose(e, t);
94
64
  if (Object.getOwnPropertySymbols) {
95
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
96
- for (i = 0; i < sourceSymbolKeys.length; i++) {
97
- key = sourceSymbolKeys[i];
98
- if (excluded.indexOf(key) >= 0) continue;
99
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
100
- target[key] = source[key];
101
- }
65
+ var n = Object.getOwnPropertySymbols(e);
66
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
102
67
  }
103
- return target;
104
- }
105
- function _toConsumableArray(arr) {
106
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
107
- }
108
- function _arrayWithoutHoles(arr) {
109
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
110
- }
111
- function _iterableToArray(iter) {
112
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
113
- }
114
- function _unsupportedIterableToArray(o, minLen) {
115
- if (!o) return;
116
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
117
- var n = Object.prototype.toString.call(o).slice(8, -1);
118
- if (n === "Object" && o.constructor) n = o.constructor.name;
119
- if (n === "Map" || n === "Set") return Array.from(o);
120
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
68
+ return i;
69
+ }
70
+ function _objectWithoutPropertiesLoose(r, e) {
71
+ if (null == r) return {};
72
+ var t = {};
73
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
74
+ if (-1 !== e.indexOf(n)) continue;
75
+ t[n] = r[n];
76
+ }
77
+ return t;
78
+ }
79
+ function _toConsumableArray(r) {
80
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
81
+ }
82
+ function _toPrimitive(t, r) {
83
+ if ("object" != typeof t || !t) return t;
84
+ var e = t[Symbol.toPrimitive];
85
+ if (void 0 !== e) {
86
+ var i = e.call(t, r || "default");
87
+ if ("object" != typeof i) return i;
88
+ throw new TypeError("@@toPrimitive must return a primitive value.");
89
+ }
90
+ return ("string" === r ? String : Number)(t);
121
91
  }
122
- function _arrayLikeToArray(arr, len) {
123
- if (len == null || len > arr.length) len = arr.length;
124
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
125
- return arr2;
92
+ function _toPropertyKey(t) {
93
+ var i = _toPrimitive(t, "string");
94
+ return "symbol" == typeof i ? i : i + "";
126
95
  }
127
- function _nonIterableSpread() {
128
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
96
+ function _typeof(o) {
97
+ "@babel/helpers - typeof";
98
+
99
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
100
+ return typeof o;
101
+ } : function (o) {
102
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
103
+ }, _typeof(o);
104
+ }
105
+ function _unsupportedIterableToArray(r, a) {
106
+ if (r) {
107
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
108
+ var t = {}.toString.call(r).slice(8, -1);
109
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
110
+ }
129
111
  }
130
112
 
131
- var version = "1.15.5";
113
+ var version = "1.15.7";
132
114
 
133
115
  function userAgent(pattern) {
134
116
  if (typeof window !== 'undefined' && window.navigator) {
@@ -171,7 +153,7 @@ function matches( /**HTMLElement*/el, /**String*/selector) {
171
153
  return false;
172
154
  }
173
155
  function getParentOrHost(el) {
174
- return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
156
+ return el.host && el !== document && el.host.nodeType && el.host !== el ? el.host : el.parentNode;
175
157
  }
176
158
  function closest( /**HTMLElement*/el, /**String*/selector, /**HTMLElement*/ctx, includeCTX) {
177
159
  if (el) {
@@ -1121,7 +1103,8 @@ function Sortable(el, options) {
1121
1103
  x: 0,
1122
1104
  y: 0
1123
1105
  },
1124
- supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,
1106
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
1107
+ supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && (!Safari || IOS),
1125
1108
  emptyInsertThreshold: 5
1126
1109
  };
1127
1110
  PluginManager.initializePlugins(this, el, defaults);
@@ -1412,7 +1395,7 @@ Sortable.prototype = /** @lends Sortable.prototype */{
1412
1395
  _nextTick(function () {
1413
1396
  document.selection.empty();
1414
1397
  });
1415
- } else if (this.nativeDraggable) {
1398
+ } else {
1416
1399
  window.getSelection().removeAllRanges();
1417
1400
  }
1418
1401
  } catch (err) {}
@@ -2054,8 +2037,11 @@ Sortable.prototype = /** @lends Sortable.prototype */{
2054
2037
  _nulling: function _nulling() {
2055
2038
  pluginEvent('nulling', this);
2056
2039
  rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
2057
- savedInputChecked.forEach(function (el) {
2058
- el.checked = true;
2040
+ var el = this.el;
2041
+ savedInputChecked.forEach(function (checkEl) {
2042
+ if (el.contains(checkEl)) {
2043
+ checkEl.checked = true;
2044
+ }
2059
2045
  });
2060
2046
  savedInputChecked.length = lastDx = lastDy = 0;
2061
2047
  },