We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
"auto"
1 parent 34e42b9 commit cf2bd53Copy full SHA for cf2bd53
1 file changed
src/use-chakra-select-props.ts
@@ -94,6 +94,10 @@ const useChakraSelectProps = <
94
isReadOnly: inputProps.readOnly,
95
required: required ?? inputProps.required,
96
menuIsOpen: realMenuIsOpen,
97
+ // Match the default flipping behavior of the Chakra Menu and Popover components
98
+ // by automatically placing the menu above or below the control based on the available space.
99
+ menuPlacement: "auto",
100
+ unstyled: true,
101
...props,
102
// aria-invalid can be passed to react-select, so we allow that to
103
// override the `isInvalid` prop
0 commit comments