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

enforce numeric inputs on NumberInput and prevent NaN text #135

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

eg9y
Copy link
Contributor

@eg9y eg9y commented Jan 9, 2025

Cases:

  • set to 0 when removing 1 digit number
  • don't set any input when typing non-numeric character
  • prevent 0 from being the last digit (left-most)

Note:

  • Does not allow negative numbers and decimals

@chrox
Copy link
Collaborator

chrox commented Jan 9, 2025

LGTM.

@chrox chrox merged commit 112c5fa into readest:main Jan 9, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants