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
|
<FormCheckbox
|
||||||
checked={selectedFiles.has(file.id)}
|
checked={selectedFiles.has(file.id)}
|
||||||
label={`${file.filename} (${formatBytes(file.length)})`}
|
label={`${file.filename} (${formatBytes(file.length)})`}
|
||||||
name={`file-${file.id}`}
|
name={`torrent-${torrentId}-file-${file.id}`}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
onChange={() => handleToggleFile(file.id)}
|
onChange={() => handleToggleFile(file.id)}
|
||||||
labelLink={fileLink(file)}
|
labelLink={fileLink(file)}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ export const IconButton: React.FC<{
|
||||||
props;
|
props;
|
||||||
const onClickStopPropagation: MouseEventHandler<HTMLAnchorElement> = (e) => {
|
const onClickStopPropagation: MouseEventHandler<HTMLAnchorElement> = (e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
e.preventDefault();
|
||||||
if (disabled) {
|
if (disabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue