Skip to content

Commit 0880138

Browse files
committed
fix(d-link): exact/active classes not properly applied DesignRevision#10
1 parent 3120623 commit 0880138

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
### 1.0.5 - (2018-10-30)
6+
7+
* fix(d-link): exact/active classes not properly applied #10
8+
59
### 1.0.4 - (2018-10-15)
610

711
* feature(d-datepicker): impr. highlighted dates, add small datepicker prop/modifier

src/components/link/Link.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<template>
2-
<component :is="computedTag"
2+
<component v-bind="$props"
3+
:is="computedTag"
34
:rel="computedRel"
45
:href="computedHref"
56
:target="target"
@@ -65,8 +66,7 @@ export default {
6566
* The class name attached when the route is exact,
6667
*/
6768
exactActiveClass: {
68-
type: String,
69-
default: 'active'
69+
type: String
7070
},
7171
/**
7272
* Whether the link is active, or not.
@@ -79,8 +79,7 @@ export default {
7979
* The class applied when the link is active.
8080
*/
8181
activeClass: {
82-
type: String,
83-
default: 'active'
82+
type: String
8483
},
8584
/**
8685
* The component tag.

src/components/link/create-link-props.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ export default function createLinkProps() {
2525
default: false
2626
},
2727
exactActiveClass: {
28-
type: String,
29-
default: 'active'
28+
type: String
3029
},
3130
active: {
3231
type: Boolean,
3332
default: false
3433
},
3534
activeClass: {
36-
type: String,
37-
default: 'active'
35+
type: String
3836
},
3937
tag: {
4038
type: String,

0 commit comments

Comments
 (0)