File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
packages/@headlessui-react Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - Fix prematurely added anchoring styles on ` ListboxOptions ` ([ #3337 ] ( https://github.com/tailwindlabs/headlessui/pull/3337 ) )
11
13
12
14
## [ 2.1.1] - 2024-06-26
13
15
Original file line number Diff line number Diff line change @@ -983,6 +983,7 @@ function OptionsFn<TTag extends ElementType = typeof DEFAULT_OPTIONS_TAG>(
983
983
} , [ anchor , data . options ] )
984
984
985
985
let anchorOptions = ( ( ) => {
986
+ if ( anchor == null ) return undefined
986
987
if ( selectedOptionIndex === null ) return { ...anchor , inner : undefined }
987
988
988
989
let elements = Array . from ( data . listRef . current . values ( ) )
You can’t perform that action at this time.
0 commit comments