We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c94a82 commit 07e1341Copy full SHA for 07e1341
ui/App/views/Mods/components/UploadMod.jsx
@@ -27,9 +27,9 @@ const UploadMod = ({refetchInstalledMods}) => {
27
<Label text="Save" htmlFor="mod_file"/>
28
<div className="relative bg-white shadow text-black h-full w-full mb-4">
29
<input
30
+ {...register('mod_file')}
31
className="absolute left-0 top-0 opacity-0 cursor-pointer w-full h-full"
- onChange={e => setFileName(e.currentTarget.files[0].name)}
32
- ref={register('mod_file')}
+ onChange={e => {console.log("file changed"); setFileName(e.currentTarget.files[0].name);}}
33
id="mod_file"
34
type="file"
35
/>
0 commit comments