mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-06 12:12:16 +00:00
fix: clear input value after uploading file in dropzone
This commit is contained in:
@@ -67,9 +67,10 @@ export const Dropzone = React.forwardRef<HTMLDivElement, DropzoneProps>(
|
|||||||
ref={inputRef}
|
ref={inputRef}
|
||||||
type="file"
|
type="file"
|
||||||
className={cn("hidden", className)}
|
className={cn("hidden", className)}
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
onChange={(e: ChangeEvent<HTMLInputElement>) => {
|
||||||
onChange(e.target.files)
|
onChange(e.target.files);
|
||||||
}
|
e.target.value = "";
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user