@yoobic/yobi 8.5.2-0 → 8.5.2

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.
@@ -1366,7 +1366,8 @@ const YooFormCreatorComponent = class {
1366
1366
  chosenClass: 'sortable-chosen-no-border',
1367
1367
  direction: 'vertical',
1368
1368
  draggable: '.sortable-container',
1369
- filter: '.selection',
1369
+ filter: (event) => event.composedPath().some((element) => { var _a; return element.tagName === 'INPUT' || ((_a = element.classList) === null || _a === void 0 ? void 0 : _a.contains('selection')); }),
1370
+ preventOnFilter: false,
1370
1371
  scroll: true,
1371
1372
  swapThreshold: 0.2,
1372
1373
  // scrollSensitivity: 1000,
@@ -2357,11 +2358,14 @@ const YooFormCreatorComponent = class {
2357
2358
  var _a;
2358
2359
  if (((_a = this.currentExpandableFieldSortable) === null || _a === void 0 ? void 0 : _a.sort) && this.currentSlides && this.currentSlides[this.selectedPageIndex] && this.currentSlides[this.selectedPageIndex].items) {
2359
2360
  const order = this.currentSlides[this.selectedPageIndex].items.filter((f) => f).map((f) => f.name);
2360
- try {
2361
- this.currentExpandableFieldSortable.sort(order);
2362
- }
2363
- catch (err) {
2364
- // do nothing
2361
+ if (!lodash.isEqual(order, this.currentExpandableFieldSortableOrder)) {
2362
+ try {
2363
+ this.currentExpandableFieldSortableOrder = order;
2364
+ this.currentExpandableFieldSortable.sort(order);
2365
+ }
2366
+ catch (err) {
2367
+ // do nothing
2368
+ }
2365
2369
  }
2366
2370
  }
2367
2371
  }, 0);