You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to go back the focus to the header of SpatialNavigationVirtualizedGrid, but looks like from the third row I lose the reference of the component and I'm not able to do the imperative focus.
Describe the solution you'd like
I'd like to have I way to keep the header reference while scrolling down. Or even expose the SpatialNavigationVirtualizedList reference in the SpatialNavigationVirtualizedGrid component, would be very helpful. With that, I could scroll to the first grid item and then move the focus to the header. Like that:
Well, what I would like is to have a way to focus on the first item (or maybe to the header of SpatialNavigationVirtualizedGrid). I used as an example the SpatialNavigationVirtualizedList that in its reference we can pass the index of the item through the .focus(0) method (did some test on it and worked fine). So if we had some way to do that too in the SpatialNavigationVirtualizedGrid would be nice. I know that the Grid component use the VirtualizedList inside of it, so exposing the ref we'd be able to manage the focused item.
See the video that I switch the SpatialNavigationVirtualizedGrid for a SpatialNavigationVirtualizedList on the same screen and I was able to focus on a not visible item (which is the first item).
Is your feature request related to a problem? Please describe.
I'm trying to go back the focus to the header of SpatialNavigationVirtualizedGrid, but looks like from the third row I lose the reference of the component and I'm not able to do the imperative focus.
Describe the solution you'd like
I'd like to have I way to keep the header reference while scrolling down. Or even expose the SpatialNavigationVirtualizedList reference in the SpatialNavigationVirtualizedGrid component, would be very helpful. With that, I could scroll to the first grid item and then move the focus to the header. Like that:
Additional context
Screen.Recording.2024-11-06.at.11.28.34.mov
The text was updated successfully, but these errors were encountered: