Skip to content

Commit

Permalink
remove minwidth from select
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul committed Mar 14, 2023
1 parent 18e7a57 commit cb5367a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/react-core/src/next/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ export interface SelectProps extends MenuProps, OUIAProps {
onOpenChange?: (isOpen: boolean) => void;
/** Indicates if the select should be without the outer box-shadow */
isPlain?: boolean;
/** Minimum width of the select menu */
minWidth?: string;
/** @hide Forwarded ref */
innerRef?: React.Ref<HTMLDivElement>;
/** z-index of the select menu */
Expand All @@ -43,7 +41,6 @@ const SelectBase: React.FunctionComponent<SelectProps & OUIAProps> = ({
toggle,
onOpenChange,
isPlain,
minWidth,
innerRef,
zIndex = 9999,
role = 'listbox',
Expand Down Expand Up @@ -103,11 +100,6 @@ const SelectBase: React.FunctionComponent<SelectProps & OUIAProps> = ({
onSelect={(event, itemId) => onSelect && onSelect(event, itemId)}
isPlain={isPlain}
selected={selected}
{...(minWidth && {
style: {
'--pf-c-menu--MinWidth': minWidth
} as React.CSSProperties
})}
{...getOUIAProps(
Select.displayName,
props.ouiaId !== undefined ? props.ouiaId : getDefaultOUIAId(Select.displayName),
Expand Down

0 comments on commit cb5367a

Please sign in to comment.