-
-
Notifications
You must be signed in to change notification settings - Fork 449
fix(ui): make drawer close button type button #1552
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(ui): make drawer close button type button #1552
Conversation
🦋 Changeset detectedLatest commit: 402e563 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 changes involve adding the Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)
🪧 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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!
Please add a changeset by running bun changeset
and select flowbite-react
and patch
version
Deployment failed with the following error:
|
No problem, done! Not sure why the deployment is failing now. |
@SutuSebastian Do you know how I can fix the deployment and get this merged? |
very weird that it doesn't even notice the changeset 🤔 on top of the build failing |
Empty commit to force build seems to have fixed it. |
I have added a
type="button"
to the Drawer component's close button. If a button does not have a type, and is part of a form, then by default it is a submit button. See here. Therefore if the Drawer component forms part of a form flow, closing the drawer triggers the form's submit behaviour.This also brings Flowbite React in line with vanilla Flowbite Drawer which uses
type="button"
on its close button.Summary by CodeRabbit
Summary by CodeRabbit