mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Fix flickering of dropdown menu on thumbnail file preview [SCI-10329]
This commit is contained in:
parent
74e1478c07
commit
2be9dd3d74
2 changed files with 9 additions and 6 deletions
|
@ -279,12 +279,10 @@ export default {
|
|||
await this.fetchLocalAppInfo();
|
||||
this.showOptions = true;
|
||||
},
|
||||
handleMenuVisibilityChange({ isMenuOpen, showOptions }) {
|
||||
if (isMenuOpen !== null) {
|
||||
this.isMenuOpen = isMenuOpen;
|
||||
}
|
||||
if (showOptions !== null) {
|
||||
this.showOptions = showOptions;
|
||||
handleMenuVisibilityChange(isMenuOpen) {
|
||||
this.isMenuOpen = isMenuOpen;
|
||||
if (isMenuOpen) {
|
||||
this.showOptions = true;
|
||||
}
|
||||
},
|
||||
handleClickOutsideThumbnail(event) {
|
||||
|
|
|
@ -87,6 +87,11 @@ export default {
|
|||
'click-outside': vOnClickOutside
|
||||
},
|
||||
mixins: [FixedFlyoutMixin],
|
||||
watch: {
|
||||
isOpen(newValue) {
|
||||
this.$emit('menu-visibility-changed', newValue);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
closeMenu() {
|
||||
this.isOpen = false;
|
||||
|
|
Loading…
Reference in a new issue