File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
- Add ` by ` prop for ` Listbox ` , ` Combobox ` and ` RadioGroup ` ([ #1482 ] ( https://github.com/tailwindlabs/headlessui/pull/1482 ) )
13
13
- Add ` @headlessui/tailwindcss ` plugin ([ #1487 ] ( https://github.com/tailwindlabs/headlessui/pull/1487 ) )
14
14
15
+ ### Fixed
16
+
17
+ - Fix getting Vue dom elements ([ #1610 ] ( https://github.com/tailwindlabs/headlessui/pull/1610 ) )
18
+
15
19
## [ 1.6.5] - 2022-06-20
16
20
17
21
### Fixed
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ export function dom<T extends Element | ComponentPublicInstance>(ref?: Ref<T | n
4
4
if ( ref == null ) return null
5
5
if ( ref . value == null ) return null
6
6
7
- return '$el' in ref . value ? ( ref . value . $el as T | null ) : ref . value
7
+ return ( ref . value as { $el ?: T } ) . $el ?? ref . value
8
8
}
You can’t perform that action at this time.
0 commit comments