Skip to content

Commit 64dd165

Browse files
committed
feat(Breadcrumb): bind attrs and listeners to the link
Signed-off-by: John Molakvoæ <[email protected]>
1 parent a86b8bd commit 64dd165

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/NcBreadcrumb/NcBreadcrumb.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ This component is meant to be used inside a Breadcrumbs component.
4343
v-if="(title || icon) && !$slots.default"
4444
:exact="exact"
4545
:to="to"
46-
:href="href">
46+
:href="href"
47+
v-bind="$attrs"
48+
v-on="$listeners">
4749
<!-- @slot Slot for passing a material design icon. Precedes the icon and title prop. -->
4850
<slot name="icon">
4951
<span v-if="icon" :class="icon" class="icon" />
@@ -93,6 +95,7 @@ export default {
9395
9496
/**
9597
* Route Location the link should navigate to when clicked on.
98+
*
9699
* @see https://v3.router.vuejs.org/api/#to
97100
*/
98101
to: {
@@ -101,7 +104,8 @@ export default {
101104
},
102105
103106
/**
104-
* Route Location the link should navigate to when clicked on.
107+
* Match the complete route attributes (query and hash included)
108+
*
105109
* @see https://v3.router.vuejs.org/api/#exact
106110
*/
107111
exact: {

0 commit comments

Comments
 (0)