@facter/ds-core 1.33.7 → 1.33.8

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/dist/index.js CHANGED
@@ -3553,6 +3553,19 @@ function CardSelect({
3553
3553
  },
3554
3554
  [onSearch]
3555
3555
  );
3556
+ React10__namespace.useEffect(() => {
3557
+ const el = listRef.current;
3558
+ if (!el || !open) return;
3559
+ const handleWheel = (e) => {
3560
+ const { scrollTop, scrollHeight, clientHeight } = el;
3561
+ if (scrollHeight <= clientHeight) return;
3562
+ e.preventDefault();
3563
+ e.stopPropagation();
3564
+ el.scrollTop = Math.max(0, Math.min(scrollTop + e.deltaY, scrollHeight - clientHeight));
3565
+ };
3566
+ el.addEventListener("wheel", handleWheel, { passive: false });
3567
+ return () => el.removeEventListener("wheel", handleWheel);
3568
+ }, [open, filteredOptions]);
3556
3569
  const handleScroll = React10__namespace.useCallback(() => {
3557
3570
  if (!onLoadMore || !hasMore || loading) return;
3558
3571
  const el = listRef.current;