Ensure sub label is null when submitting an empty string (#16779)

* null sub_label when submitting an empty string

* prevent cancel from submitting form

* fix test
This commit is contained in:
Josh Hawkins
2025-02-24 07:02:36 -07:00
committed by GitHub
parent 9414e001f3
commit 1d8f1bd7ae
3 changed files with 17 additions and 13 deletions
@@ -86,7 +86,9 @@ export default function TextEntryDialog({
)}
/>
<DialogFooter className="pt-4">
<Button onClick={() => setOpen(false)}>Cancel</Button>
<Button type="button" onClick={() => setOpen(false)}>
Cancel
</Button>
<Button variant="select" type="submit">
Save
</Button>