Skip to content

Commit

Permalink
fix(Select/Dropdown): updated autofocus to false by default in v5 (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
thatblindgeye authored Oct 17, 2024
1 parent 6f9fc9a commit 408b802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const DropdownBase: React.FunctionComponent<DropdownProps> = ({
onOpenChangeKeys = ['Escape', 'Tab'],
menuHeight,
maxMenuHeight,
shouldFocusFirstItemOnOpen = true,
shouldFocusFirstItemOnOpen = false,
...props
}: DropdownProps) => {
const localMenuRef = React.useRef<HTMLDivElement>();
Expand Down
2 changes: 1 addition & 1 deletion packages/react-core/src/components/Select/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const SelectBase: React.FunctionComponent<SelectProps & OUIAProps> = ({
selected,
toggle,
shouldFocusToggleOnSelect = false,
shouldFocusFirstItemOnOpen = true,
shouldFocusFirstItemOnOpen = false,
onOpenChange,
onOpenChangeKeys = ['Escape', 'Tab'],
isPlain,
Expand Down

0 comments on commit 408b802

Please sign in to comment.