@syncfusion/ej2-lists 33.1.47 → 33.2.3

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,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 33.1.47
3
+ * version : 33.2.3
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-lists",
3
- "version": "33.1.47",
3
+ "version": "33.2.3",
4
4
  "description": "The listview control allows you to select an item or multiple items from a list-like interface and represents the data in interactive hierarchical structure across different layouts or views.",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,10 +8,10 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-lists.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~33.1.45",
12
- "@syncfusion/ej2-buttons": "~33.1.44",
13
- "@syncfusion/ej2-data": "~33.1.45",
14
- "@syncfusion/ej2-popups": "~33.1.44"
11
+ "@syncfusion/ej2-base": "~33.2.3",
12
+ "@syncfusion/ej2-buttons": "~33.2.3",
13
+ "@syncfusion/ej2-data": "~33.2.3",
14
+ "@syncfusion/ej2-popups": "~33.2.3"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -207,18 +207,19 @@ var Sortable = /** @class */ (function (_super) {
207
207
  if (dropInst.element.querySelector('.e-list-nrt')) {
208
208
  curIdx = curIdx - 1;
209
209
  }
210
- var sortableTargetElement = _this.getSortableElement(e.target, dropInst);
210
+ var sortableTargetElement = _this.getSortableElement(e.target, dropInst) || e.target.querySelector('.e-grabbed');
211
+ var isDroppedOnContainer = dropInst.element === e.target && !sortableTargetElement;
211
212
  if (_this.curTarget === _this.target && sortableTargetElement === _this.curTarget) {
212
213
  curIdx = prevIdx;
213
214
  }
214
- if (dropInst.element === e.target || (!isPlaceHolderPresent && _this.curTarget === _this.target)) {
215
+ if (isDroppedOnContainer || (!isPlaceHolderPresent && _this.curTarget === _this.target)) {
215
216
  var beforeDropArgs = {
216
217
  previousIndex: prevIdx, currentIndex: curIdx,
217
218
  target: e.target, droppedElement: _this.target, helper: e.helper, cancel: false
218
219
  };
219
220
  _this.trigger('beforeDrop', beforeDropArgs, function (observedArgs) {
220
- if ((dropInst.element === e.target || (typeof e.target.className === 'string' && e.target.className.indexOf('e-list-nrt') > -1) || (typeof e.target.className === 'string' && e.target.className.indexOf('e-list-nr-template') > -1)
221
- || e.target.closest('.e-list-nr-template')) && !observedArgs.cancel) {
221
+ if ((isDroppedOnContainer || (typeof sortableTargetElement.className === 'string' && sortableTargetElement.className.indexOf('e-list-nrt') > -1) || (typeof sortableTargetElement.className === 'string' && sortableTargetElement.className.indexOf('e-list-nr-template') > -1)
222
+ || sortableTargetElement.closest('.e-list-nr-template')) && !observedArgs.cancel) {
222
223
  _this.updateItemClass(dropInst);
223
224
  dropInst.element.appendChild(_this.target);
224
225
  _this.trigger('drop', {