mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 06:04:46 +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();
|
await this.fetchLocalAppInfo();
|
||||||
this.showOptions = true;
|
this.showOptions = true;
|
||||||
},
|
},
|
||||||
handleMenuVisibilityChange({ isMenuOpen, showOptions }) {
|
handleMenuVisibilityChange(isMenuOpen) {
|
||||||
if (isMenuOpen !== null) {
|
this.isMenuOpen = isMenuOpen;
|
||||||
this.isMenuOpen = isMenuOpen;
|
if (isMenuOpen) {
|
||||||
}
|
this.showOptions = true;
|
||||||
if (showOptions !== null) {
|
|
||||||
this.showOptions = showOptions;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleClickOutsideThumbnail(event) {
|
handleClickOutsideThumbnail(event) {
|
||||||
|
|
|
@ -87,6 +87,11 @@ export default {
|
||||||
'click-outside': vOnClickOutside
|
'click-outside': vOnClickOutside
|
||||||
},
|
},
|
||||||
mixins: [FixedFlyoutMixin],
|
mixins: [FixedFlyoutMixin],
|
||||||
|
watch: {
|
||||||
|
isOpen(newValue) {
|
||||||
|
this.$emit('menu-visibility-changed', newValue);
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeMenu() {
|
closeMenu() {
|
||||||
this.isOpen = false;
|
this.isOpen = false;
|
||||||
|
|
Loading…
Reference in a new issue