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

Validation of numeric types #97

Open
tmarzec opened this issue Sep 7, 2022 · 0 comments
Open

Validation of numeric types #97

tmarzec opened this issue Sep 7, 2022 · 0 comments
Labels
enhancement New feature or request O-Community

Comments

@tmarzec
Copy link
Contributor

tmarzec commented Sep 7, 2022

Currently, the visual validation of input when adding/modifying objects is not the best, especially for numeric types.

The default way antd handles NumberInput components is that it allows visually inputting everything in it. Only after clicking outside of the window, it visually discards changes that aren't assignable to the given type.
Screenshot 2022-09-07 at 13 51 51
It's only after clicking outside of the input field, that it comes back to being 0.

It can be confusing, especially if a floating point number is provided in an integer input field.
Screenshot 2022-09-07 at 13 56 15
After clicking outside the input field goes back to:
Screenshot 2022-09-07 at 13 57 16

@tmarzec tmarzec added the enhancement New feature or request label Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request O-Community
Projects
None yet
Development

No branches or pull requests

1 participant