From f8e48a912fc7fe073b81cc0ed511ede639998337 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 10 Jul 2024 16:07:34 +0200 Subject: [PATCH 1/2] CustomSelectContorlV2: do not flip if legacy adapter --- .../components/src/custom-select-control-v2/custom-select.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/components/src/custom-select-control-v2/custom-select.tsx b/packages/components/src/custom-select-control-v2/custom-select.tsx index 42fada7d7554a..e925038812fa7 100644 --- a/packages/components/src/custom-select-control-v2/custom-select.tsx +++ b/packages/components/src/custom-select-control-v2/custom-select.tsx @@ -145,6 +145,8 @@ function _CustomSelect( sameWidth slide={ false } onKeyDown={ onSelectPopoverKeyDown } + // Match legacy behavior + flip={ ! isLegacy } > { children } From 31195e69310fd3331549aa6b13811ee3bf8c5eca Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 10 Jul 2024 16:40:56 +0200 Subject: [PATCH 2/2] CHANGELOG --- packages/components/CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 7b0c17a67bc40..e92926bbbe5ce 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -5,7 +5,8 @@ ### Internal - `CustomSelectControl`: switch to ariakit-based implementation ([#63258](https://github.com/WordPress/gutenberg/pull/63258)). -- `CustomSelectControl`: animate select popover appearance. ([#63343](https://github.com/WordPress/gutenberg/pull/63343)) +- `CustomSelectControlV2`: animate select popover appearance. ([#63343](https://github.com/WordPress/gutenberg/pull/63343)) +- `CustomSelectControlV2`: do not flip popover if legacy adapter. ([#63357](https://github.com/WordPress/gutenberg/pull/63357)). ### Enhancements