Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85630894
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/components/dropdown_menu/dropdown_menu.js b/src/components/dropdown_menu/dropdown_menu.js
index 23221e7203..fdf8f351c0 100644
--- a/src/components/dropdown_menu/dropdown_menu.js
+++ b/src/components/dropdown_menu/dropdown_menu.js
@@ -1,36 +1,36 @@
const DropdownMenu = {
props: [
'menuList'
],
data () {
return {
showMenu: false
}
},
methods: {
show () {
this.showMenu = true
},
hide () {
this.showMenu = false
},
handleClick (e) {
if (!(e.target === this.$refs.toggle) && !(e.target.parentNode === this.$refs.toggle)) {
this.hide()
}
},
menuClicked (index) {
if (this.menuList[index].clickCb) {
this.menuList[index].clickCb()
}
}
},
mounted () {
document.addEventListener('click', this.handleClick)
},
destroyed () {
- document.removeEventListener('click', this.handleKeyupEvent)
+ document.removeEventListener('click', this.handleClick)
}
}
export default DropdownMenu
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Aug 10, 1:14 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1724835
Default Alt Text
(1 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment