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 @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
17
17
- Fix incorrect transitionend/transitioncancel events for the Transition component ([ #1537 ] ( https://github.com/tailwindlabs/headlessui/pull/1537 ) )
18
18
- Improve outside click of ` Dialog ` component ([ #1546 ] ( https://github.com/tailwindlabs/headlessui/pull/1546 ) )
19
19
- Detect outside clicks from within ` <iframe> ` elements ([ #1552 ] ( https://github.com/tailwindlabs/headlessui/pull/1552 ) )
20
+ - Improve Combobox input cursor position ([ #1574 ] ( https://github.com/tailwindlabs/headlessui/pull/1574 ) )
20
21
21
22
## [ 1.6.4] - 2022-05-29
22
23
Original file line number Diff line number Diff line change @@ -1064,7 +1064,7 @@ let Option = forwardRefWithAs(function Option<
1064
1064
select ( )
1065
1065
if ( data . mode === ValueMode . Single ) {
1066
1066
actions . closeCombobox ( )
1067
- disposables ( ) . nextFrame ( ( ) => data . inputRef . current ?. focus ( { preventScroll : true } ) )
1067
+ data . inputRef . current ?. focus ( { preventScroll : true } )
1068
1068
}
1069
1069
} )
1070
1070
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
18
18
- Improve outside click of ` Dialog ` component ([ #1546 ] ( https://github.com/tailwindlabs/headlessui/pull/1546 ) )
19
19
- Detect outside clicks from within ` <iframe> ` elements ([ #1552 ] ( https://github.com/tailwindlabs/headlessui/pull/1552 ) )
20
20
- Only render the ` Dialog ` on the client ([ #1566 ] ( https://github.com/tailwindlabs/headlessui/pull/1566 ) )
21
+ - Improve Combobox input cursor position ([ #1574 ] ( https://github.com/tailwindlabs/headlessui/pull/1574 ) )
21
22
22
23
## [ 1.6.4] - 2022-05-29
23
24
Original file line number Diff line number Diff line change @@ -892,7 +892,7 @@ export let ComboboxOption = defineComponent({
892
892
api . selectOption ( id )
893
893
if ( api . mode . value === ValueMode . Single ) {
894
894
api . closeCombobox ( )
895
- nextTick ( ( ) => dom ( api . inputRef ) ?. focus ( { preventScroll : true } ) )
895
+ dom ( api . inputRef ) ?. focus ( { preventScroll : true } )
896
896
}
897
897
}
898
898
You can’t perform that action at this time.
0 commit comments