-
Notifications
You must be signed in to change notification settings - Fork 922
fix(inertia): link always render as anchor tag #3989
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
Conversation
commit: |
|
Why not keep the same |
|
Because the InertiaLink must only be used when the url is defined. I think that, the issue arises because the InertiaLink component is rendered even when the url is null. In such cases, it attempts to navigate, potentially leading to unexpected behavior like linking to the current page or triggering navigation events. |
Co-authored-by: Romain Hamel <[email protected]>
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.
Thanks @jvbianchi π
|
@benjamincanac does this PR address the onSelect InertiaLink issue? I changed the Link.vue file for testing and still onSelect within a dropdown menu does not trigger |
|
Did you use the latest |
Yes, i have the newest |
|
It does indeed, @romhml any idea about this? |
|
@benjamincanac I want to think @Mallon94 is using nuxt/ui-pro because in nuxt/ui https://pkg.pr.new/@nuxt/ui@999a0f8 it is already fixed |
Buttons are treated as links, breaking forms. Fixed in nuxt/ui#3989, but un-released as of now.
|
@FabianMHz15 I am using nuxt/ui-pro however it directly depends on nuxt/ui so I am able to override which version it uses and I've tested out these newer patches and the issue still persists. |
|
Yes I've reproduced the issue as well using |
|
+1 |
π Linked issue
Resolves #3974
Resolves #3990
β Type of change
π Description
This is a attempt to fix the issue in #3974.
This is my first contribution to open-source, let me know if something is wrong.
π Checklist