Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/use-chakra-select-props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this prop also to match v6. I don't believe it does anything anyway, because this package uses all custom components, but it could prevent react-select from passing around unused styles. It doesn't hurt in either case.

...props,
// aria-invalid can be passed to react-select, so we allow that to
// override the `isInvalid` prop
Expand Down
Loading