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
1010### Fixed
1111
1212- 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 ) )
1314
1415## [ 1.7.1] - 2022-09-12
1516
Original file line number Diff line number Diff line change @@ -502,7 +502,7 @@ let Panel = forwardRefWithAs(function Panel<TTag extends ElementType = typeof DE
502502 tabIndex : selected ? 0 : - 1 ,
503503 }
504504
505- if ( ! selected && ( props . unmount ?? true ) ) {
505+ if ( ! selected && ( props . unmount ?? true ) && ! ( props . static ?? false ) ) {
506506 return < Hidden as = "span" { ...ourProps } />
507507 }
508508
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
1010### Fixed
1111
1212- 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 ) )
1314
1415## [ 1.7.1] - 2022-09-12
1516
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ export let TabPanel = defineComponent({
395395 tabIndex : selected . value ? 0 : - 1 ,
396396 }
397397
398- if ( ! selected . value && props . unmount ) {
398+ if ( ! selected . value && props . unmount && ! props . static ) {
399399 return h ( Hidden , { as : 'span' , ...ourProps } )
400400 }
401401
You can’t perform that action at this time.
0 commit comments