diff --git a/packages/react-core/src/components/Dropdown/Dropdown.tsx b/packages/react-core/src/components/Dropdown/Dropdown.tsx index 88a3bf55959..2aaa1c38b44 100644 --- a/packages/react-core/src/components/Dropdown/Dropdown.tsx +++ b/packages/react-core/src/components/Dropdown/Dropdown.tsx @@ -127,7 +127,7 @@ const DropdownBase: React.FunctionComponent = ({ 'li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])' ); firstElement && (firstElement as HTMLElement).focus(); - }, 0); + }, 10); } // If the event is not on the toggle and onOpenChange callback is provided, close the menu diff --git a/packages/react-core/src/components/Select/Select.tsx b/packages/react-core/src/components/Select/Select.tsx index 24f632e57d9..21179505802 100644 --- a/packages/react-core/src/components/Select/Select.tsx +++ b/packages/react-core/src/components/Select/Select.tsx @@ -132,7 +132,7 @@ const SelectBase: React.FunctionComponent = ({ setTimeout(() => { const firstElement = menuRef?.current?.querySelector('li button:not(:disabled),li input:not(:disabled)'); firstElement && (firstElement as HTMLElement).focus(); - }, 0); + }, 10); } // If the event is not on the toggle and onOpenChange callback is provided, close the menu