Skip to content

Commit

Permalink
fix: Fix avatar title not shown when component used without menu
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Miakshyn <[email protected]>
  • Loading branch information
Koc committed Dec 7, 2024
1 parent 6f2e76a commit 0b20e22
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/NcAvatar/NcAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export default {
</docs>
<template>
<span ref="main"
:title="tooltip"
v-click-outside="closeMenu"

Check warning on line 157 in src/components/NcAvatar/NcAvatar.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-click-outside" should go before ":title"
:class="{
'avatardiv--unknown': userDoesNotExist,
Expand All @@ -177,7 +178,6 @@ export default {
type="tertiary-no-background"
class="action-item action-item__menutoggle"
:aria-label="avatarAriaLabel"
:title="tooltip"
@click="toggleMenu">
<template #icon>
<NcLoadingIcon v-if="contactsMenuLoading" />
Expand All @@ -191,7 +191,6 @@ export default {
:container="menuContainer"
:open.sync="contactsMenuOpenState"
:aria-label="avatarAriaLabel"
:title="tooltip"
@click="toggleMenu">
<component :is="item.ncActionComponent"
v-for="(item, key) in menu"
Expand Down

0 comments on commit 0b20e22

Please sign in to comment.