Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteef99d3

Browse files
committed
fix[tags-view]: fixed contexrmenu bug on firefox
1 parent6f2a7ce commiteef99d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/views/layout/components/TagsView.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<template>
22
<divclass="tags-view-container">
33
<scroll-paneclass='tags-view-wrapper'ref='scrollPane'>
4-
<router-linkref='tag'class="tags-view-item":class="isActive(tag)?'active':''"v-for="tag in Array.from(visitedViews)":to="tag.path":key="tag.path"@contextmenu.prevent.native="openMenu(tag,$event)">
4+
<router-linkref='tag'class="tags-view-item":class="isActive(tag)?'active':''"v-for="tag in Array.from(visitedViews)"
5+
:to="tag.path":key="tag.path"@contextmenu.prevent.native="openMenu(tag,$event)">
56
{{generateTitle(tag.title)}}
67
<spanclass='el-icon-close'@click.prevent.stop='closeSelectedTag(tag)'></span>
78
</router-link>
@@ -40,9 +41,9 @@ export default {
4041
},
4142
visible(value) {
4243
if (value) {
43-
window.addEventListener('click',this.closeMenu)
44+
document.body.addEventListener('click',this.closeMenu)
4445
}else {
45-
window.removeEventListener('click',this.closeMenu)
46+
document.body.removeEventListener('click',this.closeMenu)
4647
}
4748
}
4849
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp