Two JS small fixes (worth for main)
This commit is contained in:
parent
7450e43eb8
commit
da3e199c91
2 changed files with 2 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ const FileTreeComponent: React.FC<{
|
|||
<FormCheckbox
|
||||
checked={selectedFiles.has(file.id)}
|
||||
label={`${file.filename} (${formatBytes(file.length)})`}
|
||||
name={`file-${file.id}`}
|
||||
name={`torrent-${torrentId}-file-${file.id}`}
|
||||
disabled={disabled}
|
||||
onChange={() => handleToggleFile(file.id)}
|
||||
labelLink={fileLink(file)}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export const IconButton: React.FC<{
|
|||
props;
|
||||
const onClickStopPropagation: MouseEventHandler<HTMLAnchorElement> = (e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue