Skip to content
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: remove click handler for the anchorlink when useRouter is true #2912

Merged

Conversation

klaascuvelier
Copy link
Contributor

Closes #2911

Removes the click handler for the element when using useRouter. Adds in all available routeExtras so they get passed along.

@klaascuvelier klaascuvelier requested a review from a team as a code owner June 5, 2024 14:16
Copy link

netlify bot commented Jun 5, 2024

Deploy Preview for carbon-components-angular ready!

Name Link
🔨 Latest commit 04ce856
🔍 Latest deploy log https://app.netlify.com/sites/carbon-components-angular/deploys/666b190c7568cc00080d07da
😎 Deploy Preview https://deploy-preview-2912--carbon-components-angular.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 site configuration.

[fragment]="routeExtras?.fragment"
[queryParamsHandling]="routeExtras?.queryParamsHandling"
[preserveFragment]="routeExtras?.preserveFragment"
[onSameUrlNavigation]="routeExtras?.onSameUrlNavigation"
Copy link
Contributor

Choose a reason for hiding this comment

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

onSameUrlNavigation is the only one that is not defined by the routerLink directive...it seems to be a property only for router.navigate which is overriding the default configuration for the router

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@klaascuvelier klaascuvelier force-pushed the fix-2911-userouter-sidenav branch from addbac2 to 7085c56 Compare June 7, 2024 09:04
@Akshat55 Akshat55 changed the title fix: fix browser behaviour and route extras fix: remove click handler for the anchorlink when useRouter is true Jun 13, 2024
@Akshat55 Akshat55 merged commit 9a7e305 into carbon-design-system:master Jun 13, 2024
13 checks passed
Copy link

🎉 This PR is included in version 5.27.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

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] routeExtras in useRouter of side navigation breaks default navigation
3 participants