Skip to content

Commit

Permalink
fix clearable file input
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Feb 4, 2024
1 parent 6570899 commit f33efcc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/engines/EnginesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,11 @@ function EngineSettings({
if (!selected) return;
setSetting(v.name, selected as string, v.default);
}}
onChange={(e) => {
if (e === null) {
setSetting(v.name, null, v.default);
}
}}
/>
);
}
Expand Down

0 comments on commit f33efcc

Please sign in to comment.