From e76adfd6245ee58888c6b63b2cf3793645502442 Mon Sep 17 00:00:00 2001 From: csandman Date: Fri, 9 Jan 2026 17:25:49 -0500 Subject: [PATCH] Change default menu placement to "auto" --- src/use-chakra-select-props.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/use-chakra-select-props.ts b/src/use-chakra-select-props.ts index 34a34b2..f248285 100644 --- a/src/use-chakra-select-props.ts +++ b/src/use-chakra-select-props.ts @@ -94,6 +94,10 @@ const useChakraSelectProps = < isReadOnly: inputProps.readOnly, required: required ?? inputProps.required, menuIsOpen: realMenuIsOpen, + // Match the default flipping behavior of the Chakra Menu and Popover components + // by automatically placing the menu above or below the control based on the available space. + menuPlacement: "auto", + unstyled: true, ...props, // aria-invalid can be passed to react-select, so we allow that to // override the `isInvalid` prop