Skip to content

Support scrolling on focusedKey change in Table hooks #2156

@LFDanLu

Description

@LFDanLu

🙋 Feature Request

Right now a non-virtualized Table created with our aria/stately hooks will not automatically scroll the focused item into view. This means keyboard navigation scrolling has to be manually added by the end user which is not ideal.

🤔 Expected Behavior

The Table/Collection hooks should handle scrolling the focused item into view out of the box

😯 Current Behavior

The Table/Collection hooks don't handle scrolling the focused item into view out of the box

💁 Possible Solution

We have some code in useSelectableList that could possibly be moved into useSelectableCollection instead. Additionally, we'll have to have to handle the tab/shift-tab case for non-virtualized Tables that was fixed for virtualized Tables here. Possible solutions can be found in the comments thread of the PR.

🧢 Your Company/Team

RSP

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions