Skip to content

Commit

Permalink
Merge pull request #4277 from traPtitech/fix/channel_not_draggable
Browse files Browse the repository at this point in the history
チャンネルリンクをdraggable='false'に
  • Loading branch information
mehm8128 committed May 10, 2024
2 parents 5997a5b + c2517ad commit b0dd54a
Showing 1 changed file with 26 additions and 18 deletions.
44 changes: 26 additions & 18 deletions src/components/Main/NavigationBar/ChannelList/ChannelElement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,34 @@
@mouseleave="onHashHoveredLeave"
/>
<router-link
v-slot="{ href, navigate }"
custom
:to="channelIdToLink(props.channel.id)"
:class="$style.channel"
:aria-current="isSelected && 'page'"
:aria-expanded="hasChildren && isOpened ? true : undefined"
:data-is-inactive="$boolAttr(!channel.active)"
:aria-label="showShortenedPath ? pathTooltip : pathToShow"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
@focus="onFocus"
@blur="onBlur"
>
<channel-element-name
:channel="channel"
:show-shortened-path="showShortenedPath"
:is-selected="isSelected"
/>
<channel-element-unread-badge
:is-noticeable="notificationState.isNoticeable"
:unread-count="notificationState.unreadCount"
/>
<a
:class="$style.channel"
:href="href"
:aria-current="isSelected && 'page'"
:aria-expanded="hasChildren && isOpened ? true : undefined"
:data-is-inactive="$boolAttr(!channel.active)"
:aria-label="showShortenedPath ? pathTooltip : pathToShow"
draggable="false"
@click="navigate"
@mouseenter="onMouseEnter"
@mouseleave="onMouseLeave"
@focus="onFocus"
@blur="onBlur"
>
<channel-element-name
:channel="channel"
:show-shortened-path="showShortenedPath"
:is-selected="isSelected"
/>
<channel-element-unread-badge
:is-noticeable="notificationState.isNoticeable"
:unread-count="notificationState.unreadCount"
/>
</a>
</router-link>
</div>

Expand Down

0 comments on commit b0dd54a

Please sign in to comment.