mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-04 16:49:40 +00:00
[chore/bugfix] fix import file on click (#4016)
This commit is contained in:
parent
0ce9bed3d1
commit
245d6db979
1 changed files with 2 additions and 3 deletions
|
@ -71,8 +71,7 @@ export default function ImportExportForm({ form, submitParse, parseResult }: Imp
|
|||
}, [exportResult]);
|
||||
|
||||
const importFileRef = useRef<HTMLInputElement>(null);
|
||||
const importFileOnClick = (e) => {
|
||||
e.preventDefault();
|
||||
const importFileOnClick = () => {
|
||||
importFileRef.current?.click();
|
||||
};
|
||||
|
||||
|
@ -114,7 +113,7 @@ export default function ImportExportForm({ form, submitParse, parseResult }: Imp
|
|||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
importFileOnClick(e);
|
||||
importFileOnClick();
|
||||
}
|
||||
}}
|
||||
role="button"
|
||||
|
|
Loading…
Reference in a new issue