-
-
Notifications
You must be signed in to change notification settings - Fork 426
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(Datepicker): expose focus() and clear() methods via ref. #1300
fix(Datepicker): expose focus() and clear() methods via ref. #1300
Conversation
Run & review this pull request in StackBlitz Codeflow. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThis update significantly enhances the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1300 +/- ##
==========================================
- Coverage 99.54% 95.53% -4.02%
==========================================
Files 163 217 +54
Lines 6621 9665 +3044
Branches 401 558 +157
==========================================
+ Hits 6591 9233 +2642
- Misses 30 432 +402 ☔ View full report in Codecov by Sentry. |
842bd04
to
c8e46ba
Compare
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- src/components/Datepicker/Datepicker.spec.tsx (2 hunks)
- src/components/Datepicker/Datepicker.tsx (5 hunks)
Files skipped from review as they are similar to previous changes (2)
- src/components/Datepicker/Datepicker.spec.tsx
- src/components/Datepicker/Datepicker.tsx
Calling
|
Closes #1299 (possibly #1039)
Summarize the changes made and the motivation behind them.
Enhanced the Datepicker component to expose
clear()
andfocus()
ref methods.This is required when datepicker value is in controlled mode.
Reference related issues using
#
followed by the issue number.Closes #1299 and (possibly #1039)
If there are breaking API changes - like adding or removing props, or changing the structure of the theme - describe them, and provide steps to update existing code.
No breaking changes.
Summary by CodeRabbit
focus
andclear
methods.