mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-12 04:27:29 -06:00
aaaaaaaaaaaaaa
This commit is contained in:
parent
94039ad3ef
commit
b5bdf23f0e
12 changed files with 212 additions and 63 deletions
|
|
@ -71,7 +71,8 @@ export default function ImportExportForm({ form, submitParse, parseResult }: Imp
|
|||
}, [exportResult]);
|
||||
|
||||
const importFileRef = useRef<HTMLInputElement>(null);
|
||||
const importFileOnClick = () => {
|
||||
const importFileOnClick = (e) => {
|
||||
e.preventDefault();
|
||||
importFileRef.current?.click();
|
||||
};
|
||||
|
||||
|
|
@ -110,7 +111,12 @@ export default function ImportExportForm({ form, submitParse, parseResult }: Imp
|
|||
className={`button with-icon${form.permType.value === undefined || form.permType.value.length === 0 ? " disabled" : ""}`}
|
||||
tabIndex={0}
|
||||
onClick={importFileOnClick}
|
||||
onKeyDown={e => e.key === "Enter" && importFileOnClick()}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") {
|
||||
e.preventDefault();
|
||||
importFileOnClick(e);
|
||||
}
|
||||
}}
|
||||
role="button"
|
||||
>
|
||||
<i className="fa fa-fw " aria-hidden="true" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue