Skip to content

Commit

Permalink
Using currentPlacement instead of placement
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Aug 28, 2024
1 parent 2212352 commit 10d7ae9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/components/src/dropdown-menu-v2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ const UnconnectedDropdownMenu = (
);

// Extract the side from the applied placement — useful for animations.
// Using `currentPlacement` instead of `placement` to make sure that we
// use the final computed placement (including "flips" etc).
const appliedPlacementSide = useStoreState(
dropdownMenuStore,
'placement'
'currentPlacement'
).split( '-' )[ 0 ];

if (
Expand Down

0 comments on commit 10d7ae9

Please sign in to comment.