-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 target _blank when anchor has children #1290
Conversation
Couple of days ago, we have faced an issue with out non-SPA project: Once you add a child element to a ``<router-link>`` with ``target="_blank"`` attribute, it wouldn't fire on a new tab. check this fiddle: https://jsfiddle.net/asynchronous/dnLs1dm4/10/ I've changed ``gaurdEvent`` method in ``link`` component so it could fix this issue.
What browser are you facing the issue? It's working properly on Chrome |
@posva we've checked on chrome and firefox (both ubuntu and windows). are you sure you're clicking on span link ? |
yes, both links behave the same (chrome 57) |
@posva anchor with child is not opening in new tab for me too. |
I see, it doesn't work on firefox. |
Nah man, same thing on Chrome ... even multiple PCs :/ |
@posva yes currentTarget fixed that issue. |
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.
ping @fnlctrl @yyx990803
Couple of days ago, we have faced an issue with out non-SPA project:
Once you add a child element to a
<router-link>
withtarget="_blank"
attribute, it wouldn't fire on a new tab. check this fiddle:https://jsfiddle.net/asynchronous/dnLs1dm4/10/
I've changed
gaurdEvent
method inlink
component so it could fix this issue.