Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

survey.Input input is removed after validation #310

Closed
nicocha30 opened this issue Nov 6, 2020 · 6 comments
Closed

survey.Input input is removed after validation #310

nicocha30 opened this issue Nov 6, 2020 · 6 comments
Labels

Comments

@nicocha30
Copy link

What operating system and terminal are you using?

Fedora 31, tested with Tilix (zsh) and Gnome Terminal (bash).

An example that showcases the bug.

Using the examples/simple.go file, after writing the first answer and hitting the Return key, my input is removed.

surveyissue

What did you expect to see?

The same behavior as the example on the README

image

Thanks a lot,

Nicolas

@nicocha30 nicocha30 added the Bug label Nov 6, 2020
@AlecAivazis
Copy link
Owner

Hey @nicocha30! thanks for bringing this up, we recently merged in a nice update to the inputs and apparently i missed this.

I'll get a fix in right now :)

@AlecAivazis
Copy link
Owner

This should now be fixed and released as part of v2.2.2. please let me know if you still run into this

@samcoe
Copy link

samcoe commented Nov 18, 2020

Just wanted to add a note here saying that a slight variation of this issue still seems to be present in v2.2.2, where if the default input value is selected it is not showing up in the response. It was reported by one of our users here.

@AlecAivazis
Copy link
Owner

Hey @samcoe thanks for bringing this up. I'm going to reopen the issue so i dont forget.

@AlecAivazis
Copy link
Owner

@samcoe this should now be fixed in v2.2.3. Thanks again for bringing it up and being patient

@samcoe
Copy link

samcoe commented Nov 18, 2020

@AlecAivazis thanks for the rapid fix! 🙇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants
@AlecAivazis @samcoe @nicocha30 and others