mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +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' },
|
placement: { type: String, default: 'bottom-end' },
|
||||||
disabled: { type: Boolean, default: false },
|
disabled: { type: Boolean, default: false },
|
||||||
offset: { type: [String, Number], default: '16' },
|
offset: { type: [String, Number], default: '16' },
|
||||||
|
noMouseLeaveClosing: { type: Boolean, default: false },
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isPopoverOpen: false,
|
isPopoverOpen: false,
|
||||||
developerNoAutoClosing: false, // stops automatic closing of menu for developer purposes: default is 'false'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -94,8 +94,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
popoverMouseLeave() {
|
popoverMouseLeave() {
|
||||||
if (this.developerNoAutoClosing) return
|
if (this.noMouseLeaveClosing || this.disabled) {
|
||||||
if (this.disabled) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.clearTimeouts()
|
this.clearTimeouts()
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<dropdown class="invite-button" offset="8" :placement="placement">
|
<dropdown class="invite-button" offset="8" :placement="placement" noMouseLeaveClosing>
|
||||||
<template #default="{ toggleMenu }">
|
<template #default="{ toggleMenu }">
|
||||||
<base-button
|
<base-button
|
||||||
icon="user-plus"
|
icon="user-plus"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user