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

negative numbers are not working as expected #50

Closed
a-x- opened this issue Apr 23, 2017 · 4 comments
Closed

negative numbers are not working as expected #50

a-x- opened this issue Apr 23, 2017 · 4 comments

Comments

@a-x-
Copy link

a-x- commented Apr 23, 2017

the - sign is not showing

@amaschas
Copy link

Ditto on this. Seems to convert all values to positive for output.

a-x- added a commit to a-x-/react-number-format that referenced this issue May 5, 2017
@a-x- a-x- mentioned this issue May 5, 2017
@cidevant
Copy link

cidevant commented May 10, 2017

+1

        <NumberFormat
          value={realNumber}
          allowNegative={true}
          displayType="text"
          thousandSeparator=" "
          decimalPrecision={false}
        />
Warning: Unknown prop `allowNegative` on <span> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in span (created by NumberFormat)
    in NumberFormat (created by CurrencyFormatter)

@s-yadav
Copy link
Owner

s-yadav commented May 14, 2017

@cidevant This warning should not come on the latest version.

@s-yadav s-yadav closed this as completed May 14, 2017
@s-yadav
Copy link
Owner

s-yadav commented May 14, 2017

@a-x- added negative number support let me know if you find any bug on that

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

No branches or pull requests

4 participants