File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
12
12
- Prevent option selection in ` Combobox.Input ` while composing ([ #1850 ] ( https://github.com/tailwindlabs/headlessui/issues/1850 ) )
13
+ - Ensure we handle the ` static ` prop in ` Tab.Panel ` components correctly ([ #1856 ] ( https://github.com/tailwindlabs/headlessui/pull/1856 ) )
13
14
14
15
## [ 1.7.1] - 2022-09-12
15
16
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ let Panel = forwardRefWithAs(function Panel<TTag extends ElementType = typeof DE
502
502
tabIndex : selected ? 0 : - 1 ,
503
503
}
504
504
505
- if ( ! selected && ( props . unmount ?? true ) ) {
505
+ if ( ! selected && ( props . unmount ?? true ) && ! ( props . static ?? false ) ) {
506
506
return < Hidden as = "span" { ...ourProps } />
507
507
}
508
508
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
12
12
- Prevent option selection in ` ComboboxInput ` while composing ([ #1850 ] ( https://github.com/tailwindlabs/headlessui/issues/1850 ) )
13
+ - Ensure we handle the ` static ` prop in ` TabPanel ` components correctly ([ #1856 ] ( https://github.com/tailwindlabs/headlessui/pull/1856 ) )
13
14
14
15
## [ 1.7.1] - 2022-09-12
15
16
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ export let TabPanel = defineComponent({
395
395
tabIndex : selected . value ? 0 : - 1 ,
396
396
}
397
397
398
- if ( ! selected . value && props . unmount ) {
398
+ if ( ! selected . value && props . unmount && ! props . static ) {
399
399
return h ( Hidden , { as : 'span' , ...ourProps } )
400
400
}
401
401
You can’t perform that action at this time.
0 commit comments