diff --git a/crates/librqbit/webui/src/components/FileListInput.tsx b/crates/librqbit/webui/src/components/FileListInput.tsx index 3825b24..e3f5e55 100644 --- a/crates/librqbit/webui/src/components/FileListInput.tsx +++ b/crates/librqbit/webui/src/components/FileListInput.tsx @@ -212,7 +212,7 @@ const FileTreeComponent: React.FC<{ handleToggleFile(file.id)} labelLink={fileLink(file)} diff --git a/crates/librqbit/webui/src/components/buttons/IconButton.tsx b/crates/librqbit/webui/src/components/buttons/IconButton.tsx index a5d3cd8..5af6497 100644 --- a/crates/librqbit/webui/src/components/buttons/IconButton.tsx +++ b/crates/librqbit/webui/src/components/buttons/IconButton.tsx @@ -11,6 +11,7 @@ export const IconButton: React.FC<{ props; const onClickStopPropagation: MouseEventHandler = (e) => { e.stopPropagation(); + e.preventDefault(); if (disabled) { return; }