-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix:[BUG] <button> cannot contain a nested <button> #678
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
base: main
Are you sure you want to change the base?
fix:[BUG] <button> cannot contain a nested <button> #678
Conversation
👷 Deploy request for appcut pending review.Visit the deploys page to approve it
|
|
@sagarkawad is attempting to deploy a commit to the OpenCut OSS Team on Vercel. A member of the Team first needs to authorize it. |
📝 WalkthroughWalkthroughThe pull request replaces button elements with semantically accessible div elements (role="button") in the projects page to resolve HTML validation errors caused by nested buttons. Event handlers and interaction logic remain unchanged. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (3)**/*.{jsx,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (6)📓 Common learnings📚 Learning: 2025-07-27T22:14:46.402ZApplied to files:
📚 Learning: 2025-07-27T22:15:27.748ZApplied to files:
📚 Learning: 2025-07-27T22:15:27.748ZApplied to files:
📚 Learning: 2025-07-27T22:15:27.748ZApplied to files:
📚 Learning: 2025-07-27T22:14:46.402ZApplied to files:
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
With this fix, when you go to projects page (http://localhost:3000/projects) and click on "Select Projects" button, you no longer get the error - cannot contain a nested .
This bug occured as the checkboxes were rendered as buttons, which were nested inside actual buttons. To fix this issue the actual buttons were changed to divs with the assigned role of a button.
Fixes #675 (issue)
Type of change
How Has This Been Tested?
Manual testing was performed by going to /projects route and clicking on the "Select Projects" button to check if the functionality or any other features don't break.
Test Configuration:
Checklist:
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.