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

v0.5.0 broke withHide function #384

Open
tetienne opened this issue Aug 23, 2024 · 0 comments
Open

v0.5.0 broke withHide function #384

tetienne opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tetienne
Copy link

Describe the bug
After upgrade to v0.5.0 withHide does not work as expected. Rollbacking to v0.4.2 solved my issue.

To Reproduce

form := huh.NewForm(
			huh.NewGroup(
				huh.NewSelect[string]().Title("Select the environment").Options(huh.NewOptions(allowedEnvs...)...).Value(&env),
			).WithHide(env != ""),
		)

Expected behavior
When env is empty, the select prompt must be displayed.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: MacOS
  • Browser N/A
  • Version N/A

Smartphone (please complete the following information):
N/A

Additional context
N/A

@bashbunni bashbunni added the bug Something isn't working label Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants