mirror of
https://github.com/magnum-opus-nn-cp/frontend.git
synced 2024-11-21 17:16:36 +03:00
fix(home): clear textarea value when a file is uploaded
This commit is contained in:
parent
acaf7d0b5e
commit
89d6b794bb
|
@ -90,6 +90,7 @@ export const HomePage: ReactFCC = () => {
|
|||
|
||||
const onDrop = useCallback(
|
||||
(acceptedFiles: File[]) => {
|
||||
setValue('text', '');
|
||||
setValue('files', [...currentFiles, ...acceptedFiles]);
|
||||
},
|
||||
[currentFiles, setValue]
|
||||
|
|
Loading…
Reference in New Issue
Block a user