diff options
author | LASER-Yi <[email protected]> | 2022-06-14 18:00:38 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2022-06-14 18:00:38 +0800 |
commit | 101bca90bf96b9d64a0319eb8b5ed6550b6c94f2 (patch) | |
tree | d93397edcac38e17bd6f80614000a041589d1ba2 | |
parent | f2eb8f13421019028ecef5583e296ac9eb8f285e (diff) | |
download | bazarr-101bca90bf96b9d64a0319eb8b5ed6550b6c94f2.tar.gz bazarr-101bca90bf96b9d64a0319eb8b5ed6550b6c94f2.zip |
Fix #1873
-rw-r--r-- | frontend/src/components/inputs/DropOverlay.tsx | 3 | ||||
-rw-r--r-- | frontend/src/pages/Episodes/index.tsx | 6 |
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)) { |