Commit 6f5ce40
fix target _blank when anchor has children (#1290)
* fix target _blank when anchor has children
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.
* Update link.js
* Update link.js1 parent a1de424 commit 6f5ce40
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments