@syncfusion/ej2-lists 29.1.34 → 29.2.4

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,4 +1,4 @@
1
- import { isNullOrUndefined, getValue, extend, SanitizeHtmlHelper, prepend, merge, addClass, isVisible, attributes, append, compile, Property, ChildProperty, detach, removeClass, formatUnit, animationMode, Animation, closest, EventHandler, Touch, remove, rippleEffect, Complex, Event, NotifyPropertyChanges, Component, select, isBlazor, getComponent, getUniqueID, Draggable, compareElementParent, Base } from '@syncfusion/ej2-base';
1
+ import { isNullOrUndefined, getValue, extend, SanitizeHtmlHelper, prepend, merge, addClass, isVisible, attributes, append, compile, Property, ChildProperty, detach, removeClass, formatUnit, animationMode, Animation, closest, EventHandler, Touch, remove, rippleEffect, Complex, Event, NotifyPropertyChanges, Component, select, Browser, getComponent, isBlazor, getUniqueID, Draggable, compareElementParent, Base } from '@syncfusion/ej2-base';
2
2
  import { Query, DataManager } from '@syncfusion/ej2-data';
3
3
  import { createCheckBox } from '@syncfusion/ej2-buttons';
4
4
 
@@ -4266,6 +4266,11 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4266
4266
  };
4267
4267
  _this.onDragStart = function (e) {
4268
4268
  _this.target = _this.getSortableElement(e.target);
4269
+ if (isNullOrUndefined(_this.target) && closest(_this.element, '.e-listbox-container') && Browser.isDevice) {
4270
+ detach(e.dragElement);
4271
+ getComponent(_this.element, 'draggable').intDestroy(e.event);
4272
+ return;
4273
+ }
4269
4274
  var cancelDrag = false;
4270
4275
  _this.target.classList.add('e-grabbed');
4271
4276
  _this.curTarget = _this.target;
@@ -4315,7 +4320,9 @@ var Sortable = /** @__PURE__ @class */ (function (_super) {
4315
4320
  }
4316
4321
  dropInst.element.insertBefore(_this.target, dropInst.placeHolderElement);
4317
4322
  var curIdx_2 = _this.getIndex(_this.target, dropInst);
4318
- prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
4323
+ if (observedArgs.currentIndex > observedArgs.previousIndex) {
4324
+ prevIdx = _this === dropInst && (prevIdx - curIdx_2) >= 1 ? prevIdx - 1 : prevIdx;
4325
+ }
4319
4326
  _this.trigger('drop', {
4320
4327
  event: e.event, element: dropInst.element, previousIndex: prevIdx, currentIndex: curIdx_2,
4321
4328
  target: e.target, helper: e.helper, droppedElement: _this.target, scopeName: _this.scope, handled: handled