-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
First Digit '1' Rendered as '0' #10
Comments
Hey, thanks for the repro! This seems to be an issue with Strict Mode. I migrated the docs to Astro at some point and forgot that Astro doesn't use Strict Mode by default. Can you confirm that turning strict mode off (i.e. |
Thanks for your prompt response! I can confirm that it indeed resolves the issue. Thanks for the workaround! I'm looking forward to when you get a proper fix. |
I just pushed a rewrite for MotionNumber that should fix this. Please let me know if you're still experiencing issues 👋 |
Hey 👋
Firstly, nice work with this component; I really enjoy using it :)
However, I encountered a weird bug.
When the value starts with a 1, for example, 10232, it gets shown as 00232.
It works as expected on the initial value, and it seems to work on your example on the website.
Here is a video of it:
Video
Here is the code to reproduce it:
I'm running the newest version (0.1.7).
All in a Next.js (14.2.5) project.
I hope this is enough information for you to reproduce it.
Please let me know if you need any additional information from me to help debug this.
Thank you!
The text was updated successfully, but these errors were encountered: