Skip to content

feat: Export prevFieldMsg and nextFieldMsg#634

Open
colinodell wants to merge 1 commit intocharmbracelet:mainfrom
colinodell:export-prev-next-msgs
Open

feat: Export prevFieldMsg and nextFieldMsg#634
colinodell wants to merge 1 commit intocharmbracelet:mainfrom
colinodell:export-prev-next-msgs

Conversation

@colinodell
Copy link
Copy Markdown

When using fields outside of a Group (as standalone components in a bubbletea application), it's impossible to tell that a user is done interacting with a field due to the prevFieldMsg and nextFieldMsg types being unexported; the parent model cannot check for (and thus handle) these messages.

Would you be open to exporting those structs so they can be detected and acted on by non-huh parent components?

@colinodell colinodell requested a review from a team as a code owner April 18, 2025 18:45
@colinodell colinodell requested review from andreynering and removed request for a team April 18, 2025 18:45
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.

1 participant