@diwauhris/ui 1.7.17 → 1.7.18

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.
package/lib/index.cjs CHANGED
@@ -1237,7 +1237,9 @@ function Combobox({ value: controlledValue, defaultValue = "", onChange, options
1237
1237
  top: rect.bottom + 4,
1238
1238
  left: rect.left,
1239
1239
  zIndex: 9999,
1240
- width: rect.width
1240
+ width: rect.width,
1241
+ pointerEvents: "auto",
1242
+ overscrollBehavior: "contain"
1241
1243
  });
1242
1244
  }, [isOpen]);
1243
1245
  (0, react.useEffect)(() => {
@@ -1338,6 +1340,12 @@ function Combobox({ value: controlledValue, defaultValue = "", onChange, options
1338
1340
  role: "listbox",
1339
1341
  style: panelStyle,
1340
1342
  className: "bg-white border border-slate-200 rounded-xl shadow-lg max-h-60 overflow-y-auto",
1343
+ onWheel: (e) => {
1344
+ if (listRef.current) {
1345
+ listRef.current.scrollTop += e.deltaY;
1346
+ e.stopPropagation();
1347
+ }
1348
+ },
1341
1349
  children: error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
1342
1350
  className: "px-3 py-2 text-sm text-rose-500 font-semibold",
1343
1351
  children: error
package/lib/index.mjs CHANGED
@@ -1213,7 +1213,9 @@ function Combobox({ value: controlledValue, defaultValue = "", onChange, options
1213
1213
  top: rect.bottom + 4,
1214
1214
  left: rect.left,
1215
1215
  zIndex: 9999,
1216
- width: rect.width
1216
+ width: rect.width,
1217
+ pointerEvents: "auto",
1218
+ overscrollBehavior: "contain"
1217
1219
  });
1218
1220
  }, [isOpen]);
1219
1221
  useEffect(() => {
@@ -1314,6 +1316,12 @@ function Combobox({ value: controlledValue, defaultValue = "", onChange, options
1314
1316
  role: "listbox",
1315
1317
  style: panelStyle,
1316
1318
  className: "bg-white border border-slate-200 rounded-xl shadow-lg max-h-60 overflow-y-auto",
1319
+ onWheel: (e) => {
1320
+ if (listRef.current) {
1321
+ listRef.current.scrollTop += e.deltaY;
1322
+ e.stopPropagation();
1323
+ }
1324
+ },
1317
1325
  children: error ? /* @__PURE__ */ jsx("div", {
1318
1326
  className: "px-3 py-2 text-sm text-rose-500 font-semibold",
1319
1327
  children: error
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@diwauhris/ui",
3
3
  "private": false,
4
- "version": "1.7.17",
4
+ "version": "1.7.18",
5
5
  "type": "module",
6
6
  "description": "DIWA UHRIS UI component library — React + Tailwind CSS",
7
7
  "keywords": [