@react-stately/tabs
Advanced tools
Comparing version 3.0.0-nightly-326f48154-241216 to 3.0.0-nightly-3dbdc1e8e-250214
@@ -34,3 +34,3 @@ var $3yB4p$reactstatelylist = require("@react-stately/list"); | ||
let selectedKey = currentSelectedKey; | ||
if (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) { | ||
if (props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey))) { | ||
selectedKey = $817f925d289daf81$var$findDefaultSelectedKey(collection, state.disabledKeys); | ||
@@ -37,0 +37,0 @@ if (selectedKey != null) // directly set selection because replace/toggle selection won't consider disabled keys |
@@ -28,3 +28,3 @@ import {useSingleSelectListState as $fgY1A$useSingleSelectListState} from "@react-stately/list"; | ||
let selectedKey = currentSelectedKey; | ||
if (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) { | ||
if (props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey))) { | ||
selectedKey = $76f919a04c5a7d14$var$findDefaultSelectedKey(collection, state.disabledKeys); | ||
@@ -31,0 +31,0 @@ if (selectedKey != null) // directly set selection because replace/toggle selection won't consider disabled keys |
{ | ||
"name": "@react-stately/tabs", | ||
"version": "3.0.0-nightly-326f48154-241216", | ||
"version": "3.0.0-nightly-3dbdc1e8e-250214", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,5 +25,5 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/list": "3.0.0-nightly-326f48154-241216", | ||
"@react-types/shared": "3.0.0-nightly-326f48154-241216", | ||
"@react-types/tabs": "3.0.0-nightly-326f48154-241216", | ||
"@react-stately/list": "3.0.0-nightly-3dbdc1e8e-250214", | ||
"@react-types/shared": "3.0.0-nightly-3dbdc1e8e-250214", | ||
"@react-types/tabs": "3.0.0-nightly-3dbdc1e8e-250214", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -30,0 +30,0 @@ }, |
@@ -46,3 +46,3 @@ /* | ||
let selectedKey = currentSelectedKey; | ||
if (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey)) { | ||
if (props.selectedKey == null && (selectionManager.isEmpty || selectedKey == null || !collection.getItem(selectedKey))) { | ||
selectedKey = findDefaultSelectedKey(collection, state.disabledKeys); | ||
@@ -49,0 +49,0 @@ if (selectedKey != null) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
36031
+ Added@react-stately/collections@3.0.0-nightly-3dbdc1e8e-250214(transitive)
+ Added@react-stately/list@3.0.0-nightly-3dbdc1e8e-250214(transitive)
+ Added@react-stately/selection@3.0.0-nightly-3dbdc1e8e-250214(transitive)
+ Added@react-stately/utils@3.0.0-nightly-3dbdc1e8e-250214(transitive)
+ Added@react-types/shared@3.0.0-nightly-3dbdc1e8e-250214(transitive)
+ Added@react-types/tabs@3.0.0-nightly-3dbdc1e8e-250214(transitive)
- Removed@react-stately/collections@3.0.0-nightly-326f48154-241216(transitive)
- Removed@react-stately/list@3.0.0-nightly-326f48154-241216(transitive)
- Removed@react-stately/selection@3.0.0-nightly-326f48154-241216(transitive)
- Removed@react-stately/utils@3.0.0-nightly-326f48154-241216(transitive)
- Removed@react-types/shared@3.0.0-nightly-326f48154-241216(transitive)
- Removed@react-types/tabs@3.0.0-nightly-326f48154-241216(transitive)