Skip to content

Commit 3970897

Browse files
authored
fix(Select): set isScrollable internally (#10320)
1 parent 3c33eb9 commit 3970897

File tree

1 file changed

+1
-1
lines changed
  • packages/react-core/src/components/Select

1 file changed

+1
-1
lines changed

packages/react-core/src/components/Select/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ const SelectBase: React.FunctionComponent<SelectProps & OUIAProps> = ({
163163
}}
164164
isPlain={isPlain}
165165
selected={selected}
166-
isScrollable={isScrollable}
166+
isScrollable={isScrollable ?? (menuHeight !== undefined || maxMenuHeight !== undefined)}
167167
{...getOUIAProps(
168168
Select.displayName,
169169
props.ouiaId !== undefined ? props.ouiaId : getDefaultOUIAId(Select.displayName),

0 commit comments

Comments
 (0)