Show invititation dropdown until user clicks somewhere else (#8539)

This commit is contained in:
Max 2025-05-10 12:38:33 +02:00 committed by GitHub
parent d4a9694657
commit be0a5c555e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -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()

View File

@ -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"