diff --git a/src/components/gui/sortable-tab.tsx b/src/components/gui/sortable-tab.tsx index d2507399..4837727f 100644 --- a/src/components/gui/sortable-tab.tsx +++ b/src/components/gui/sortable-tab.tsx @@ -47,13 +47,13 @@ export const WindowTabItemButton = forwardRef< "rounded-full hover:bg-red-600 hover:text-white w-4 h-4 ml-2 flex justify-center items-center", "libsql-window-close" )} + onClick={(e) => { + e.stopPropagation(); + if (onClose) onClose(); + }} > { - e.stopPropagation(); - if (onClose) onClose(); - }} /> )}