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

Restore erased value if the user does not enter a new one after erasing current value with keyboard #26

Open
taeh98 opened this issue Jan 21, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@taeh98
Copy link
Contributor

taeh98 commented Jan 21, 2021

If the user uses their keyboard to erase the current value of a spinner but then does not type in a new value before closing the keyboard, the original value that was erased should be restored. Please could you implement this?

@marcocesarato marcocesarato added the enhancement New feature or request label Jan 23, 2021
@marcocesarato
Copy link
Owner

Hi, this could be ambiguous because it is difficult to detect whether the user wants to delete the value or not.

@taeh98
Copy link
Contributor Author

taeh98 commented Feb 13, 2021

Hi, this could be ambiguous because it is difficult to detect whether the user wants to delete the value or not.

That's true, perhaps it could be an optional prop? If you know the use case - the variable being recorded and the wider context of how, when, why, etc your app would be used - perhaps you would know whether or not it would make the most sense to restore a previous value if the user erases an old one without putting in a new one afterwards. If it isn't provided, maybe it could default to not restoring erased values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants