-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Description
Description
If a form input is in an invalid state, the user is "stuck" on that input until they fix it—they can't move forward or backward.
Shouldn't a user still be able to go back in the form and change previous inputs before proceeding? Especially if the validity of input B depends on the value of input A...
Current behaviour
form := huh.NewForm(
huh.NewGroup(
huh.NewInput().
Title("Input A"),
huh.NewInput().
Title("Input B").
// can't move back to A until entering a value for B
Validate(huh.ValidateNotEmpty()),
),
)
form.Run()
Above screenshot shows state after trying to shift+tab back from input B to input A.
Desired behaviour
Allow user to go backwards - only prevent them from moving forward past the invalid input.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels