fix(#2599): TableView: space key on link within cell scrolls the TableView down a page#2619
fix(#2599): TableView: space key on link within cell scrolls the TableView down a page#2619majornista wants to merge 25 commits into
Conversation
…eView down a page
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
ktabors
left a comment
There was a problem hiding this comment.
I tested the table with the link and it worked. Nervous about this causing regressions.
1. update Table test to better evaluate preventDefault of scrolling. 2. add `isLinkRole` utility method to `usePress`.
This comment was marked as outdated.
This comment was marked as outdated.
dkario
left a comment
There was a problem hiding this comment.
The code looks good. I defer to RSP teammates on potential regressions
This comment was marked as outdated.
This comment was marked as outdated.
|
This is a bit more changes than I was hoping. Should we perhaps use |
currentTarget doesn’t exist on the nativeEvent when the keyboard event fires from the link. |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
…croll-on-space-key
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@devongovett See 44909d5, which I think consolidates the logic for a link within an ancestor that also handles the space key to trigger a |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
|
Build successful! 🎉 |
Closes #2599
✅ Pull Request Checklist:
📝 Test Instructions:
preventDefaultshould be called on the event to prevent the TableView from scrolling.🧢 Your Project:
Adobe/Accessibility