react-spectrum
1aa9e9a3 - Updating selected Tab tabIndex when selection is changed programatically and the collection isn't focused (#2829)

Commit
4 years ago
Updating selected Tab tabIndex when selection is changed programatically and the collection isn't focused (#2829) * fixing updating focused key for Tabs if selected tab is programatically changed * fixing tests * adding tests and story for programatic tabs selection changing * addressing review comments * addressing more review comments * removing useEffect and fixing setState in render warning * fixing lint * moving focused key update logic to useMultipleSelectionState * fixing lint and removing sidenav test change * addressing review comments * fixing lint * making only tablist update focused key when selected key changes we decided that this behavior would be weird for other components like tableview since it would change the user scroll position. Only applying this change for tablist for now * simplifying logic by getting rid of the useEffect * fixing lint Co-authored-by: Robert Snow <rsnow@adobe.com>
Author
Parents
Loading