-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: playGround story issue in NumberInput #17389
fix: playGround story issue in NumberInput #17389
Conversation
✅ Deploy Preview for carbon-elements ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for v11-carbon-react ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good 🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! No freezing up 🥶 !
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17389 +/- ##
=======================================
Coverage 76.82% 76.82%
=======================================
Files 408 408
Lines 13966 13966
Branches 4336 4336
=======================================
Hits 10730 10730
- Misses 3062 3063 +1
+ Partials 174 173 -1 ☔ View full report in Codecov by Sentry. |
fdb31d9
Closes #17164
This PR fixes the Playground story for NumberInput where the screen freezes and website crashes when
steppers
(+/-) are clicked rapidlyPlayground story was throwing "allocation size overflow" error.
I suspect it was because of Complex props structure leading to JSON serialization problem
Changelog
Simplified Playground story with internal state management.
Moved props to Playground.args and Playground.argTypes
Testing / Reviewing
Open deploy preview and go to NumberInput - Playground story
click on steppers , verify that no errors are seen in console, and that website do not freeze/crash
verify that all props in playground works as expected