Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(form): add strict group backtracking option #541

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cpcf
Copy link

@cpcf cpcf commented Feb 24, 2025

  • Added strictGroupBacktracking field to Form struct
  • Initialized strictGroupBacktracking with default true value
  • Introduced WithStrictGroupBacktracking method to configure backtracking behavior
  • Updated prevGroupMsg handling to respect strict backtracking setting
  • Fixed documentation typos in PrevGroup and PrevField comments
  • Added examples based on the existing bubbletea example

Closes #540

- Added `strictGroupBacktracking` field to `Form` struct
- Initialized `strictGroupBacktracking` with default `true` value
- Introduced `WithStrictGroupBacktracking` method to configure backtracking behavior
- Updated `prevGroupMsg` handling to respect strict backtracking setting
- Fixed documentation typos in `PrevGroup` and `PrevField` comments
@cpcf cpcf requested a review from a team as a code owner February 24, 2025 12:34
@cpcf cpcf requested review from meowgorithm and removed request for a team February 24, 2025 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow backtracking to previous group when current group is invalid
1 participant