We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2e6e1b commit 6913085Copy full SHA for 6913085
lib/templates/plugin.js
@@ -6,7 +6,7 @@ export default ({ app: { router } }) => {
6
// Called only once, when the directive is first bound to the element. This is where you can do one-time setup work.
7
bind (el) {
8
const navigate = event => {
9
- const href = event.target.getAttribute('href')
+ const href = event.currentTarget.getAttribute('href')
10
if (href && href[0] === '/') {
11
event.preventDefault()
12
router.push(href)
0 commit comments