From 9ac5ff917e62c0c3d0dfd065b01f77b274ef9546 Mon Sep 17 00:00:00 2001 From: adamviktora <84135613+adamviktora@users.noreply.github.com> Date: Fri, 27 Oct 2023 20:20:24 +0200 Subject: [PATCH] fix(Menu): allow caret to move in input under Menu on left/right arrow press (#9751) --- packages/react-core/src/components/Menu/Menu.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Menu/Menu.tsx b/packages/react-core/src/components/Menu/Menu.tsx index 0c7f670252e..18c084449bf 100644 --- a/packages/react-core/src/components/Menu/Menu.tsx +++ b/packages/react-core/src/components/Menu/Menu.tsx @@ -311,7 +311,8 @@ class MenuBase extends React.Component { noHorizontalArrowHandling={ document.activeElement && (document.activeElement.classList.contains(breadcrumbStyles.breadcrumbLink) || - document.activeElement.classList.contains(dropdownStyles.dropdownToggle)) + document.activeElement.classList.contains(dropdownStyles.dropdownToggle) || + document.activeElement.tagName === 'INPUT') } noEnterHandling noSpaceHandling