-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Option to not clear the prompt when validation false #374
Comments
I agreed with @mhkeller . |
PR welcomed. I think the default behavior should be updated to not clear the initial answer. |
I get the opposite behavior - the input does not clear upon validation error. Was there a change that made this the default behavior? |
It's possible different prompts have different behaviors; or the stable version ( Any of this would explain the different behavior? Also anyone has strong opinion the input should be cleared? If so, we could consider adding as a configuration option |
I'd like to have the input cleared. Otherwise when user enters an invalid input, we have to ask the user to clear the input and retype, which is not the best user experience. Plus, |
Alright! To summarize the need if someone wants to send a PR:
|
Currently when an answer false validation, the answer the user has given is also cleared. An option to have the user input remain so that it could be edited would be helpful.
My use case is that I'm asking the user to fill out text for a sample tweet with validation that the text is less than 140 characters. If the string is over 140, I give an error message with the current character count. For the user, it would be nice if they could edit the text string and resubmit instead of having their entry get cleared and have to start again.
The text was updated successfully, but these errors were encountered: