sccoreui 6.4.73 → 6.4.74

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.
@@ -92,17 +92,22 @@ function Sort() {
92
92
  }, [sortValue, sortBy]);
93
93
  (0, react_1.useEffect)(() => {
94
94
  const handleSortingScroll = (e) => {
95
- let scrollEl = document.querySelector("#sorting_columns");
95
+ var _a;
96
+ const scrollEl = document.querySelector("#sorting_columns");
96
97
  if (!scrollEl)
97
98
  return;
98
99
  const target = e.target;
100
+ // ✅ If scrolling inside the panel → do nothing
99
101
  if (scrollEl.contains(target)) {
100
102
  return;
101
103
  }
102
- scrollEl.style.display = "none";
104
+ // If scrolling outside → hide properly
105
+ (_a = showShort.current) === null || _a === void 0 ? void 0 : _a.hide(e);
106
+ };
107
+ document.addEventListener("scroll", handleSortingScroll, true);
108
+ return () => {
109
+ document.removeEventListener("scroll", handleSortingScroll, true);
103
110
  };
104
- document.addEventListener("scroll", handleSortingScroll);
105
- return () => document.removeEventListener("scroll", handleSortingScroll);
106
111
  }, [showShort]);
107
112
  return (0, utilComponents_1.skeletonLoding)() ? ((0, jsx_runtime_1.jsx)(FeatureSkeleton_1.default, {})) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `icon-40x40 cursor-pointer sc_icon_hover flex align-items-center border-round hover:bg-primary-25 ${isDisabled && "disabled"} ${isOverlayOpened || featureDetails.sort.isSortable
108
113
  ? "bg-primary-50"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sccoreui",
3
- "version": "6.4.73",
3
+ "version": "6.4.74",
4
4
  "description": "ui-sccore",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",