We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07fd073 commit c5dfe99Copy full SHA for c5dfe99
src/directives/link.js
@@ -9,7 +9,6 @@ export default function (Vue) {
9
10
const {
11
bind,
12
- getAttr,
13
isObject,
14
addClass,
15
removeClass
@@ -61,8 +60,9 @@ export default function (Vue) {
61
60
// update things when the route changes
62
this.unwatch = vm.$watch('$route', bind(this.onRouteUpdate, this))
63
// check v-link-active ids
64
- const activeIds = getAttr(this.el, LINK_UPDATE)
+ const activeIds = this.el.getAttribute(LINK_UPDATE)
65
if (activeIds) {
+ this.el.removeAttribute(LINK_UPDATE)
66
this.activeIds = activeIds.split(',')
67
}
68
// no need to handle click if link expects to be opened
0 commit comments