fix(checkbox): incorrect onChange typing in Checkbox Group#2595
Conversation
🦋 Changeset detectedLatest commit: 263953e The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
WalkthroughThe patch addresses a specific bug in 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 (
|
|
@wingkwong is attempting to deploy a commit to the NextUI Inc Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (2)
- .changeset/heavy-berries-sniff.md (1 hunks)
- packages/components/checkbox/src/use-checkbox-group.ts (2 hunks)
Additional comments: 2
.changeset/heavy-berries-sniff.md (1)
- 1-5: The changeset description is clear and accurately reflects the patch update for the "@nextui-org/checkbox" package. It succinctly describes the fix applied to the incorrect
onChangetyping in the Checkbox Group component.packages/components/checkbox/src/use-checkbox-group.ts (1)
- 44-53: > 📝 NOTE
This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [17-50]
The modification to the
Propsinterface, specifically the exclusion of theonChangeproperty fromHTMLNextUIProps<"div">and the addition of a newonChangeproperty that accepts an array of strings, correctly addresses the typing issue described in the PR. This change ensures that theCheckboxGroupcomponent'sonChangeevent is now correctly typed, aligning with both the documentation and developer expectations.
There was a problem hiding this comment.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- packages/components/checkbox/src/use-checkbox-group.ts (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/components/checkbox/src/use-checkbox-group.ts
Closes #2594
📝 Description
as titled
⛳️ Current behavior (updates)
🚀 New behavior
💣 Is this a breaking change (Yes/No):
📝 Additional Information
Summary by CodeRabbit
onChangetyping in Checkbox Group, ensuring it now correctly handles an array of strings as values.