-
Notifications
You must be signed in to change notification settings - Fork 71
LG-3972: Adds disabledSend prop to InlineMessageFeedback #3203
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
Conversation
🦋 Changeset detectedLatest commit: 2ba2114 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 |
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.
Pull Request Overview
Adds a disabledSend
prop to the InlineMessageFeedback component to provide external control over the submit button's disabled state. This enhancement allows parent components to disable the submit functionality based on external conditions beyond the existing internal validation.
- Adds
disabledSend
boolean prop with default value offalse
- Updates submit button disabled logic to include the new prop
- Includes test coverage for the new functionality
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
File | Description |
---|---|
InlineMessageFeedback.types.ts | Adds type definition for the new disabledSend prop |
InlineMessageFeedback.tsx | Implements the prop destructuring and button disabled logic |
InlineMessageFeedback.spec.tsx | Adds test case to verify the prop functionality |
.changeset/funny-fans-punch.md | Documents the change for release notes |
Size Change: +232 B (+0.01%) Total Size: 1.59 MB
ℹ️ View Unchanged
|
✍️ Proposed changes
InlineMessageFeedback provides a way to disable the Submit button
🎟 Jira ticket: Name of ticket
✅ Checklist
For new components
For bug fixes, new features & breaking changes
pnpm changeset
and documented my changes🧪 How to test changes