Skip to content

fix(theme/Sidebar): pass down onClick prop#2811

Merged
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
JounQin:fix/2810
Nov 26, 2025
Merged

fix(theme/Sidebar): pass down onClick prop#2811
SoonIter merged 1 commit intoweb-infra-dev:mainfrom
JounQin:fix/2810

Conversation

@JounQin
Copy link
Copy Markdown
Collaborator

@JounQin JounQin commented Nov 26, 2025

Summary

fix: pass down onClick prop

Related Issue

close #2810

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings November 26, 2025 08:11
@netlify
Copy link
Copy Markdown

netlify bot commented Nov 26, 2025

Deploy Preview for rspress-v2 ready!

Name Link
🔨 Latest commit 41d5af1
🔍 Latest deploy log https://app.netlify.com/projects/rspress-v2/deploys/6926b64b98cca100087355ab
😎 Deploy Preview https://deploy-preview-2811--rspress-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug where the onClick prop was not being passed down to the Link component in SidebarItemRaw, even though it was being accepted as a parameter and correctly passed to the fallback div element.

  • Passes the onClick prop to the Link component to ensure consistent click handling behavior

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@JounQin JounQin requested a review from SoonIter November 26, 2025 08:16
@SoonIter SoonIter changed the title fix: pass down onClick prop fix(theme/Sidebar): pass down onClick prop Nov 26, 2025
Copy link
Copy Markdown
Member

@SoonIter SoonIter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks❤

@SoonIter SoonIter merged commit fa8f3cf into web-infra-dev:main Nov 26, 2025
17 checks passed
@JounQin JounQin deleted the fix/2810 branch November 26, 2025 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: link sidebar group can not toggle collapse any longer after v2.0.0-rc.1

3 participants