Skip to content

Commit 08770a2

Browse files
committed
fix weird issue that open file dialog sometimes opens up twice?
1 parent 91558eb commit 08770a2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/BiasSettings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,10 +162,10 @@ export default function BiasSettings({
162162
<legend className="-ml-1 px-1 text-sm font-medium">
163163
Data
164164
</legend>
165-
<div className="relative grid gap-3">
166-
<label className="absolute -top-[10px] leading-0 left-4 px-1 bg-white text-sm font-medium">
165+
<div className="relative grid gap-3 select-none">
166+
<div className="absolute -top-[10px] leading-0 left-4 px-1 bg-white text-sm font-medium">
167167
Data set
168-
</label>
168+
</div>
169169
<FormField
170170
control={form.control}
171171
name="file"

src/components/CSVReader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default function CSVReader({ onChange }: csvReader) {
8585
{...getRootProps()}
8686
className="border-aaDark border-dashed border-2 cursor-pointer rounded-xl text-center p-10 lg:min-w-[400px]"
8787
>
88-
<input id="data-upload" {...getInputProps()} multiple={false} />
88+
<input {...getInputProps()} multiple={false} id="data-upload" />
8989

9090
<FormLabel htmlFor="data-upload">
9191
Drag 'n' drop a CSV file here, or click to select one

0 commit comments

Comments
 (0)