diff --git a/src-web/components/CreateDropdown.tsx b/src-web/components/CreateDropdown.tsx
index 4a41931c..e4773150 100644
--- a/src-web/components/CreateDropdown.tsx
+++ b/src-web/components/CreateDropdown.tsx
@@ -5,14 +5,9 @@ import { Dropdown } from './core/Dropdown';
interface Props {
hideFolder?: boolean;
children: DropdownProps['children'];
- openOnHotKeyAction?: DropdownProps['openOnHotKeyAction'];
}
-export function CreateDropdown({ hideFolder, children, openOnHotKeyAction }: Props) {
+export function CreateDropdown({ hideFolder, children }: Props) {
const items = useCreateDropdownItems({ hideFolder, hideIcons: true });
- return (
-
- {children}
-
- );
+ return {children};
}
diff --git a/src-web/components/RecentRequestsDropdown.tsx b/src-web/components/RecentRequestsDropdown.tsx
index 4d7663f9..4446a037 100644
--- a/src-web/components/RecentRequestsDropdown.tsx
+++ b/src-web/components/RecentRequestsDropdown.tsx
@@ -41,10 +41,6 @@ export function RecentRequestsDropdown({ className }: Pick {
- dropdownRef.current?.toggle();
- });
-
const items = useMemo(() => {
if (activeWorkspaceId === null) return [];
@@ -87,6 +83,7 @@ export function RecentRequestsDropdown({ className }: Pick
-
-
+
+
);
diff --git a/src-web/components/core/Dropdown.tsx b/src-web/components/core/Dropdown.tsx
index a0e6142c..5069d701 100644
--- a/src-web/components/core/Dropdown.tsx
+++ b/src-web/components/core/Dropdown.tsx
@@ -55,7 +55,6 @@ export type DropdownItem = DropdownItemDefault | DropdownItemSeparator;
export interface DropdownProps {
children: ReactElement>;
items: DropdownItem[];
- openOnHotKeyAction?: HotkeyAction;
onOpen?: () => void;
onClose?: () => void;
}
@@ -71,7 +70,7 @@ export interface DropdownRef {
}
export const Dropdown = forwardRef(function Dropdown(
- { children, items, openOnHotKeyAction, onOpen, onClose }: DropdownProps,
+ { children, items, onOpen, onClose }: DropdownProps,
ref,
) {
const [isOpen, _setIsOpen] = useState(false);
@@ -88,11 +87,6 @@ export const Dropdown = forwardRef(function Dropdown
[onClose, onOpen],
);
- useHotKey(openOnHotKeyAction ?? null, () => {
- setIsOpen(true);
- menuRef.current?.next?.();
- });
-
useImperativeHandle(ref, () => ({
...menuRef.current,
isOpen: isOpen,