mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:22:24 -05:00
fix import file on click
This commit is contained in:
parent
5b2fe1f9a0
commit
97cfe7e243
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…
Add table
Add a link
Reference in a new issue