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

Fix FastField for number input with empty value #806

Merged

Conversation

xiaotian-tan
Copy link
Contributor

Issue:
FastField have an issue in handling input with type number or range when the value is empty.
It triggers infinite loop warnings "The specified value "NaN" is not a valid number...".

Here is the demo of issue: https://codesandbox.io/s/n4rlmq208p

Solution:
if input value is '' for number or range input, don't parseFloat it.

@jaredpalmer jaredpalmer merged commit bc49d78 into jaredpalmer:master Aug 6, 2018
@xiaotian-tan xiaotian-tan deleted the bugfix/fast-field-input-number branch August 6, 2018 12:49
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.

None yet

3 participants