Skip to content

Commit

Permalink
Merge pull request #24 from bookracy/bugfix/settings-form
Browse files Browse the repository at this point in the history
fix being able to click on buttons when they are invisible
  • Loading branch information
JorrinKievit authored Sep 3, 2024
2 parents 6393319 + eff989b commit eb9998e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ function Settings() {
setShowSave(false);
}}
className="w-32"
disabled={!showSave}
>
Reset
</Button>
<Button className="w-32" onClick={handleSubmit}>
<Button className="w-32" onClick={handleSubmit} disabled={!showSave}>
Save
</Button>
</div>
Expand Down

0 comments on commit eb9998e

Please sign in to comment.