charmbracelet / huh

Build terminal forms and prompts 🤷🏻‍♀️
MIT License
3.72k stars 94 forks source link

refactor(input): Skip validation when going to previous field #285

Open Sculas opened 2 weeks ago

Sculas commented 2 weeks ago

In my opinion, this would make user experience better. Say you made a typo in the previous field but you already went to the next one, now you need to fill the current field correctly before you can fix the previous field.

This also keeps validation intact, because the field still needs to be valid to progress to the next field.