Prevent dropping files outside of dropzones

This commit is contained in:
Danielv123 committed 2024-05-15 19:43:40 +01:00
1 parent b6113a1007
commit 05b697fd24
3 files changed
+36 -3

No files matched your search

@@ -7,6 +7,7 @@ import { DraggingContext } from "../model/is_dragging";
export default function UploadButton(props: React.ComponentProps<typeof Button>) {
const isDroppingFile = useContext(DraggingContext);
return <Button
className="dropzone"
{...props}
style={{
...props.style,