-
Notifications
You must be signed in to change notification settings - Fork 357
after validate failure, answer value not output or clean #350
Comments
i found a simple solution, in this file https://github.com/AlecAivazis/survey/blob/master/input.go |
I tested the #351 branch now with my app and it does fix the bug, which I've also been seeing 👍 @zigitn in the original test code, declaring |
Hello guys, bug still exist |
I did a simple fix before, #351, but I don’t have time to complete the test cases. If you want, you can take over my work. |
I was not able to reproduce this with the latest version, is this fixed? I was gonna pick it up if it is still an issue. |
What operating system and terminal are you using?
macos iterm2 zsh
github.com/AlecAivazis/survey/v2 v2.2.9
An example that showcases the bug.
What did you expect to see?
i inputed "aaa", then press Enter, the validate not passed, and the answer output has cleard, but when i continue to type "bbb", the "aaa" will show, continue press Enter, The answer is once again cleared, but when i input "http", the "aaabbb" will show. I think this is a confused behavior, is my code wrong? i also tested
survey.Required
, it has same behavior.What did you see instead?
after validate failure, old answer should show or clean
The text was updated successfully, but these errors were encountered: