Skip to content

Commit 3080e1a

Browse files
committed
fix(NcUserBubble): fix tag assignment if no url but to provided
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 9e13fd6 commit 3080e1a

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/components/NcUserBubble/NcUserBubble.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,13 @@ export default {
249249
},
250250
251251
isLinkComponent() {
252-
return this.hasUrl
253-
? (this.to ? RouterLink : 'a')
254-
: 'div'
252+
if (this.hasUrl) {
253+
return 'a'
254+
} else if (this.to) {
255+
return RouterLink
256+
} else {
257+
return 'div'
258+
}
255259
},
256260
257261
popoverEmpty() {
@@ -339,8 +343,4 @@ export default {
339343
padding-left: 4px;
340344
}
341345
}
342-
343-
a.user-bubble__content {
344-
cursor: pointer;
345-
}
346346
</style>

0 commit comments

Comments
 (0)