-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adding feature flag check for expandable table rows in aria hooks #4865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
rowProps['aria-rowindex'] = node.index + 1 + state.collection.headerRows.length; // aria-rowindex is 1 based | ||
} else { | ||
delete rowProps['aria-rowindex']; | ||
} | ||
|
||
let treeGridRowProps: HTMLAttributes<HTMLElement> = {}; | ||
if ('expandedKeys' in state) { | ||
if (tableNestedRows() && 'expandedKeys' in state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wanted to just make a var for let isTreeGrid = tableNestedRows() && 'expandedKeys' in state;
and use it here, but typescript wasn't smart enough to figure out that state would then be a TreeGridState
only and complained about lines below
Build successful! 🎉 |
Build successful! 🎉 |
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'identifier', name: 'Column' } |
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project:
RSP