Skip to content

wrong value while entering 1 with leading zeros #9

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

Open
iabduul7 opened this issue Jul 14, 2021 · 5 comments
Open

wrong value while entering 1 with leading zeros #9

iabduul7 opened this issue Jul 14, 2021 · 5 comments

Comments

@iabduul7
Copy link

iabduul7 commented Jul 14, 2021

video_2021-07-14_14-59-54.mp4

This is the error I am facing, while entering zeros, it is incorrectly behaving

@CaioQuirinoMedeiros
Copy link
Owner

@iabduul7 can you please share your code?

@iabduul7
Copy link
Author

@iabduul7 can you please share your code?

the same code written in readme file.

<CurrencyInput value={value} onChangeValue={setValue} prefix="$" delimiter="," separator="." precision={2} onChangeText={(formattedValue) => { console.log(formattedValue); // $2,310.46 }} />

@lucianojsjr
Copy link

@CaioQuirinoMedeiros Is there any update about this problem?

@CaioQuirinoMedeiros
Copy link
Owner

I'm sorry but so far I couldn't reproduce this behavior... maybe you guys could provide some more info...

@ihsanktmr
Copy link

try to set precision={0}

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