Skip to content

Commit

Permalink
Fix SelectArrayInput options placement
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Sep 23, 2024
1 parent e87ff23 commit b57dd6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/ra-ui-materialui/src/input/SelectArrayInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ export const SelectArrayInput = (props: SelectArrayInputProps) => {
readOnly={readOnly}
data-testid="selectArray"
size={size}
MenuProps={defaultMenuProps}
{...field}
{...options}
onChange={handleChangeWithCreateSupport}
Expand Down Expand Up @@ -378,6 +379,13 @@ export type SelectArrayInputProps = ChoicesProps &
onChange?: (event: ChangeEvent<HTMLInputElement> | RaRecord) => void;
};

const defaultMenuProps = {
anchorOrigin: {
vertical: 'bottom' as const,
horizontal: 'left' as const,
},
};

const sanitizeRestProps = ({
alwaysOn,
choices,
Expand Down

0 comments on commit b57dd6a

Please sign in to comment.