Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

Prevent setting the current font to the menu item.

Oleg Isonen0bbc24b2ff80
diff --git a/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx b/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx
index cd08daafc3..4c66a8ce10 100644
--- a/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx
+++ b/apps/designer/app/designer/shared/fonts-manager/item-menu.tsx
@@ -44,7 +44,7 @@ export const ItemMenu = ({
onFocus={onFocusTrigger}
tabIndex={1}
onClick={(event) => {
- // Prevent setting the current fon to the item.
+ // Prevent setting the current font to the item.
event.stopPropagation();
}}
>
@@ -54,6 +54,10 @@ export const ItemMenu = ({
<DropdownMenuPortal>
<DropdownMenuContent align="start">
<DropdownMenuItem
+ onClick={(event) => {
+ // Prevent setting the current font to the item.
+ event.stopPropagation();
+ }}
onSelect={() => {
onDelete();
}}