diff --git a/client/src/app/components/KebabDropdown.tsx b/client/src/app/components/KebabDropdown.tsx index 3224c6fe06..bf0d2412ec 100644 --- a/client/src/app/components/KebabDropdown.tsx +++ b/client/src/app/components/KebabDropdown.tsx @@ -24,6 +24,7 @@ export const KebabDropdown: React.FC = ({ popperProps={{ position: "right" }} isOpen={isOpen} onOpenChange={(isOpen) => setIsOpen(isOpen)} + shouldFocusToggleOnSelect toggle={(toggleRef: React.Ref) => ( { const { t } = useTranslation(); @@ -115,8 +113,6 @@ export const ApplicationsTable: React.FC = () => { const { pushNotification } = React.useContext(NotificationsContext); const { identities } = useFetchIdentities(); - const [isToolbarKebabOpen, setIsToolbarKebabOpen] = - React.useState(false); const [saveApplicationModalState, setSaveApplicationModalState] = React.useState<"create" | Application | null>(null); @@ -799,27 +795,10 @@ export const ApplicationsTable: React.FC = () => { {dropdownItems.length ? ( - setIsToolbarKebabOpen(false)} - onOpenChange={(_isOpen) => setIsToolbarKebabOpen(false)} - toggle={(toggleRef: React.Ref) => ( - - setIsToolbarKebabOpen(!isToolbarKebabOpen) - } - isExpanded={isToolbarKebabOpen} - > - - - )} - shouldFocusToggleOnSelect - > - {dropdownItems} - + ) : ( <>