summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLASER-Yi <[email protected]>2022-06-14 18:00:38 +0800
committerLASER-Yi <[email protected]>2022-06-14 18:00:38 +0800
commit101bca90bf96b9d64a0319eb8b5ed6550b6c94f2 (patch)
treed93397edcac38e17bd6f80614000a041589d1ba2
parentf2eb8f13421019028ecef5583e296ac9eb8f285e (diff)
downloadbazarr-101bca90bf96b9d64a0319eb8b5ed6550b6c94f2.tar.gz
bazarr-101bca90bf96b9d64a0319eb8b5ed6550b6c94f2.zip
Fix #1873
-rw-r--r--frontend/src/components/inputs/DropOverlay.tsx3
-rw-r--r--frontend/src/pages/Episodes/index.tsx6
2 files changed, 3 insertions, 6 deletions
diff --git a/frontend/src/components/inputs/DropOverlay.tsx b/frontend/src/components/inputs/DropOverlay.tsx
index 701d8c023..a46e7b70d 100644
--- a/frontend/src/components/inputs/DropOverlay.tsx
+++ b/frontend/src/components/inputs/DropOverlay.tsx
@@ -58,6 +58,7 @@ export const DropOverlay: FunctionComponent<DropOverlayProps> = ({
}) => {
const {
getRootProps,
+ getInputProps,
isDragActive,
isDragAccept: accepted,
isDragReject: rejected,
@@ -99,6 +100,8 @@ export const DropOverlay: FunctionComponent<DropOverlayProps> = ({
return (
<Box sx={{ position: "relative" }} {...getRootProps()}>
+ {/* Fix for some browsers. Some browsers need a input element to trigger the file browser panel */}
+ <input {...getInputProps()} hidden />
{visible && (
<Box className={classes.container} style={{ zIndex }}>
<Stack
diff --git a/frontend/src/pages/Episodes/index.tsx b/frontend/src/pages/Episodes/index.tsx
index 46e7cfcb8..0464488ec 100644
--- a/frontend/src/pages/Episodes/index.tsx
+++ b/frontend/src/pages/Episodes/index.tsx
@@ -100,12 +100,6 @@ const SeriesEpisodesView: FunctionComponent = () => {
onDrop,
});
- // const onReject = useCallback<Sure<FileProps["onReject"]>>((rejections) => {
- // showNotification(
- // notification.warn("Cannot Upload Files", "Some files are invalid")
- // );
- // }, []);
-
useDocumentTitle(`${series?.title ?? "Unknown Series"} - Bazarr (Series)`);
if (isNaN(id) || (isFetched && !series)) {