Skip to content

Commit c80d6c1

Browse files
committed
ensure priority for v-link-active
1 parent 3144503 commit c80d6c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/directives/link.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ export default function (Vue) {
1616
} = Vue.util
1717

1818
Vue.directive('link-active', {
19+
priority: 1001,
1920
bind () {
2021
this.el.__v_link_active = true
2122
}
2223
})
2324

2425
Vue.directive('link', {
26+
priority: 1000,
2527

2628
bind () {
2729
const vm = this.vm

0 commit comments

Comments
 (0)