mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Show invititation dropdown until user clicks somewhere else (#8539)
This commit is contained in:
parent
d4a9694657
commit
be0a5c555e
@ -29,11 +29,11 @@ export default {
|
||||
placement: { type: String, default: 'bottom-end' },
|
||||
disabled: { type: Boolean, default: false },
|
||||
offset: { type: [String, Number], default: '16' },
|
||||
noMouseLeaveClosing: { type: Boolean, default: false },
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isPopoverOpen: false,
|
||||
developerNoAutoClosing: false, // stops automatic closing of menu for developer purposes: default is 'false'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -94,8 +94,7 @@ export default {
|
||||
}
|
||||
},
|
||||
popoverMouseLeave() {
|
||||
if (this.developerNoAutoClosing) return
|
||||
if (this.disabled) {
|
||||
if (this.noMouseLeaveClosing || this.disabled) {
|
||||
return
|
||||
}
|
||||
this.clearTimeouts()
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<dropdown class="invite-button" offset="8" :placement="placement">
|
||||
<dropdown class="invite-button" offset="8" :placement="placement" noMouseLeaveClosing>
|
||||
<template #default="{ toggleMenu }">
|
||||
<base-button
|
||||
icon="user-plus"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user