-
-
Notifications
You must be signed in to change notification settings - Fork 322
fix: add missing type attributes on buttons #2789
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: add missing type attributes on buttons #2789
Conversation
Summary by CodeRabbitRelease Notes
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughAdds explicit Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-07-12T17:36:57.255ZApplied to files:
📚 Learning: 2025-07-12T17:12:25.807ZApplied to files:
📚 Learning: 2025-11-17T16:47:05.578ZApplied to files:
📚 Learning: 2025-09-17T02:42:41.928ZApplied to files:
🔇 Additional comments (2)
Tip ✨ Issue Enrichment is now available for GitHub issues!CodeRabbit can now help you manage issues more effectively:
Disable automatic issue enrichmentTo disable automatic issue enrichment, add the following to your issue_enrichment:
auto_enrich:
enabled: falseThanks 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 |
|
button in |
@nileshpahari you should be able to edit the test to accommodate this change, making sure old functionality still present and works. |
…on-type-attributes-2656
…t test to accommodate this change
|
Done. Please check when you're free. |



Proposed change
Add
type="button"attribute to all interactive buttons that are not meant to submit forms.Resolves #2656
Files modified
frontend/src/app/page.tsxfrontend/src/app/projects/dashboard/metrics/page.tsxfrontend/src/components/MenteeIssues.tsxfrontend/src/components/Milestones.tsxfrontend/src/components/MultiSearch.tsxfrontend/src/components/NavDropDown.tsxfrontend/src/components/RecentIssues.tsxfrontend/src/components/RecentPullRequests.tsxfrontend/src/components/Release.tsxfrontend/src/components/RepositoryCard.tsxfrontend/src/components/ScrollToTop.tsxfrontend/src/components/Search.tsxfrontend/src/components/SortBy.tsxfrontend/src/components/ToggleableList.tsxfrontend/src/components/UserMenu.tsxChecklist
make check-testlocally; all checks and tests passed.