Поправлен баг в Firefox

This commit is contained in:
Book Pauk
2022-09-30 16:22:14 +07:00
parent 385e102d7b
commit b5fe352ca6

View File

@@ -84,7 +84,7 @@
<q-icon name="la la-times-circle" class="q-field__focusable-action" @click.stop.prevent="search.genre = ''" /> <q-icon name="la la-times-circle" class="q-field__focusable-action" @click.stop.prevent="search.genre = ''" />
</template> </template>
<q-tooltip v-if="genreNames" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px"> <q-tooltip v-if="genreNames && showTooltips" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
{{ genreNames }} {{ genreNames }}
</q-tooltip> </q-tooltip>
</q-input> </q-input>
@@ -94,7 +94,7 @@
class="bg-white q-mt-xs" input-style="cursor: pointer" style="width: 80px;" label="Язык" stack-label outlined dense clearable readonly class="bg-white q-mt-xs" input-style="cursor: pointer" style="width: 80px;" label="Язык" stack-label outlined dense clearable readonly
@click="selectLang" @click="selectLang"
> >
<q-tooltip v-if="search.lang" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px"> <q-tooltip v-if="search.lang && showTooltips" :delay="500" anchor="bottom middle" content-style="font-size: 80%" max-width="400px">
{{ search.lang }} {{ search.lang }}
</q-tooltip> </q-tooltip>
</q-input> </q-input>
@@ -354,6 +354,7 @@ class Search {
genreTreeInpxHash = ''; genreTreeInpxHash = '';
cachedAuthors = {}; cachedAuthors = {};
hiddenCount = 0; hiddenCount = 0;
showTooltips = true;
limitOptions = [ limitOptions = [
{label: '10', value: 10}, {label: '10', value: 10},
@@ -543,11 +544,20 @@ class Search {
this.$root.stdDialog.alert(info, 'Статистика по коллекции', {iconName: 'la la-info-circle'}); this.$root.stdDialog.alert(info, 'Статистика по коллекции', {iconName: 'la la-info-circle'});
} }
async hideTooltip() {
//Firefox bugfix: при всплывающем диалоге скрываем подсказку
this.showTooltips = false;
await utils.sleep(1000);
this.showTooltips = true;
}
selectGenre() { selectGenre() {
this.hideTooltip();
this.selectGenreDialogVisible = true; this.selectGenreDialogVisible = true;
} }
selectLang() { selectLang() {
this.hideTooltip();
this.selectLangDialogVisible = true; this.selectLangDialogVisible = true;
} }