@homebound/beam 2.416.4 → 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.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9889,6 +9889,7 @@ function Option(props) {
|
|
|
9889
9889
|
}
|
|
9890
9890
|
|
|
9891
9891
|
// src/inputs/internal/VirtualizedOptions.tsx
|
|
9892
|
+
var import_interactions = require("@react-aria/interactions");
|
|
9892
9893
|
var import_react45 = require("react");
|
|
9893
9894
|
var import_react_virtuoso = require("react-virtuoso");
|
|
9894
9895
|
|
|
@@ -10140,7 +10141,7 @@ function VirtualizedOptions(props) {
|
|
|
10140
10141
|
const selectedItem = state.selectionManager.selectedKeys.size > 0 ? state.collection.getItem([...state.selectionManager.selectedKeys.values()][0]) : void 0;
|
|
10141
10142
|
(0, import_react45.useEffect)(
|
|
10142
10143
|
() => {
|
|
10143
|
-
if (scrollOnFocus && virtuosoRef.current && focusedItem?.index) {
|
|
10144
|
+
if (!!scrollOnFocus && (0, import_interactions.getInteractionModality)() === "keyboard" && virtuosoRef.current && focusedItem?.index) {
|
|
10144
10145
|
virtuosoRef.current.scrollToIndex({ index: focusedItem.index, align: "center" });
|
|
10145
10146
|
}
|
|
10146
10147
|
},
|