diff --git a/packages/editor/src/toolbar/components/dropdown.tsx b/packages/editor/src/toolbar/components/dropdown.tsx index c8405b599..da7134b6a 100644 --- a/packages/editor/src/toolbar/components/dropdown.tsx +++ b/packages/editor/src/toolbar/components/dropdown.tsx @@ -45,7 +45,7 @@ export function Dropdown(props: DropdownProps) { const isMobile = useIsMobile(); const isBottom = toolbarLocation === "bottom"; - const { closePopup, isPopupOpen } = usePopupHandler({ + const { isPopupOpen } = usePopupHandler({ group, id, isOpen, @@ -82,7 +82,15 @@ export function Dropdown(props: DropdownProps) { selectedItem )} @@ -91,7 +99,7 @@ export function Dropdown(props: DropdownProps) { closePopup(id)} + onClose={() => setIsOpen(false)} position={{ target: isBottom ? getToolbarElement()