@homebound/beam 2.416.3 → 2.416.5

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
@@ -4068,7 +4068,7 @@ function Tooltip(props) {
4068
4068
  ...triggerProps,
4069
4069
  ...!state.isOpen && typeof title === "string" ? { title } : {},
4070
4070
  ...tid,
4071
- css: Css.display("contents").addIn(":active:not(:has(a))", Css.add("pointerEvents", "none").$).$,
4071
+ css: Css.display("contents").$,
4072
4072
  draggable: true,
4073
4073
  onDragStart: (e) => e.preventDefault(),
4074
4074
  children
@@ -9529,6 +9529,7 @@ function Option(props) {
9529
9529
  }
9530
9530
 
9531
9531
  // src/inputs/internal/VirtualizedOptions.tsx
9532
+ import { getInteractionModality } from "@react-aria/interactions";
9532
9533
  import { useEffect as useEffect12, useRef as useRef21 } from "react";
9533
9534
  import { Virtuoso } from "react-virtuoso";
9534
9535
 
@@ -9780,7 +9781,7 @@ function VirtualizedOptions(props) {
9780
9781
  const selectedItem = state.selectionManager.selectedKeys.size > 0 ? state.collection.getItem([...state.selectionManager.selectedKeys.values()][0]) : void 0;
9781
9782
  useEffect12(
9782
9783
  () => {
9783
- if (scrollOnFocus && virtuosoRef.current && focusedItem?.index) {
9784
+ if (!!scrollOnFocus && getInteractionModality() === "keyboard" && virtuosoRef.current && focusedItem?.index) {
9784
9785
  virtuosoRef.current.scrollToIndex({ index: focusedItem.index, align: "center" });
9785
9786
  }
9786
9787
  },