From 9137a9fd13ce7fb793f3da713faef3fe37aab4ae Mon Sep 17 00:00:00 2001 From: Carlos Bravo <37012961+cbravobernal@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:17:24 +0100 Subject: [PATCH] Composite: Restore Hover and Typeahead functionality - Backport to 6.7.2 (#67258) * Composite: Restore `Hover` and `Typeahead` functionality (#67212) * Composite.Typeahead: Restore functionality * Add changelog * Resurrect CompositeHover * Update changelog Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: t-hamano Co-authored-by: im3dabasia Co-authored-by: cbravobernal Co-authored-by: Mayank-Tripathi32 Co-authored-by: jameskoster * Update changelog * Fix changelog --------- Co-authored-by: Lena Morita Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: t-hamano Co-authored-by: im3dabasia Co-authored-by: Mayank-Tripathi32 Co-authored-by: jameskoster Co-authored-by: Aki Hamano --- packages/components/CHANGELOG.md | 9 ++++----- packages/components/src/composite/hover.tsx | 2 +- packages/components/src/composite/typeahead.tsx | 4 +++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 37cf206a54505..6036926f2be33 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -4,7 +4,10 @@ ### Bug Fixes -- `FormFileUpload`: Prevent HEIC and HEIF files from being uploaded on Safari ([#67139](https://github.com/WordPress/gutenberg/pull/67139)). +- `FormFileUpload`: Prevent HEIC and HEIF files from being uploaded on Safari ([#67139](https://github.com/WordPress/gutenberg/pull/67139)). +- `ToggleGroupControl`: Don't set value on focus after a reset ([#66151](https://github.com/WordPress/gutenberg/pull/66151)). +- `Composite.Hover`: Restore functionality ([#67212](https://github.com/WordPress/gutenberg/pull/67212)). +- `Composite.Typeahead`: Restore functionality ([#67212](https://github.com/WordPress/gutenberg/pull/67212)). ### Deprecations @@ -13,10 +16,6 @@ - `FontSizePicker`: Deprecate 36px default size ([#66920](https://github.com/WordPress/gutenberg/pull/66920)). - `ComboboxControl`: Deprecate 36px default size ([#66900](https://github.com/WordPress/gutenberg/pull/66900)). -### Bug Fixes - -- `ToggleGroupControl`: Don't set value on focus after a reset ([#66151](https://github.com/WordPress/gutenberg/pull/66151)). - ## 28.8.6 (2024-10-14) ### Bug Fixes diff --git a/packages/components/src/composite/hover.tsx b/packages/components/src/composite/hover.tsx index 1507a1879cc19..a8a0ebfb4729f 100644 --- a/packages/components/src/composite/hover.tsx +++ b/packages/components/src/composite/hover.tsx @@ -26,5 +26,5 @@ export const CompositeHover = forwardRef< // obfuscated to discourage its use outside of the component's internals. const store = ( props.store ?? context.store ) as Ariakit.CompositeStore; - return ; + return ; } ); diff --git a/packages/components/src/composite/typeahead.tsx b/packages/components/src/composite/typeahead.tsx index 519c59ea374e5..3a3c3875a3360 100644 --- a/packages/components/src/composite/typeahead.tsx +++ b/packages/components/src/composite/typeahead.tsx @@ -26,5 +26,7 @@ export const CompositeTypeahead = forwardRef< // obfuscated to discourage its use outside of the component's internals. const store = ( props.store ?? context.store ) as Ariakit.CompositeStore; - return ; + return ( + + ); } );