chore(deps): update dependency react-aria-components to v1.16.0 (#32783)
* chore(deps): update dependency react-aria-components to v1.16.0 Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix(ui): fix selectedKey type mismatch in Tabs component Change `selectedId` initialization from `null` to `undefined` to match React Aria's `selectedKey` prop type (`Key | undefined`). Signed-off-by: Johan Persson <johanopersson@gmail.com> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: Johan Persson <johanopersson@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Johan Persson <johanopersson@gmail.com>
This commit is contained in:
@@ -153,7 +153,7 @@ export const Tabs = (props: TabsProps) => {
|
||||
return '';
|
||||
}
|
||||
|
||||
let selectedId: string | null = null;
|
||||
let selectedId: string | undefined;
|
||||
let maxSegments = -1;
|
||||
|
||||
activeTabs.forEach((segmentCount, id) => {
|
||||
|
||||
Reference in New Issue
Block a user