Open source personal finance application
fix TrnFromModalCats glitch
ilkome98eea890dbf9
diff --git a/components/trnForm/TrnFormModalCats.vue b/components/trnForm/TrnFormModalCats.vueindex dc0e355f..ba3ee778 100644--- a/components/trnForm/TrnFormModalCats.vue+++ b/components/trnForm/TrnFormModalCats.vue@@ -24,10 +24,7 @@ export default {handler (isShow) {const initialSlide = this.$store.getters['categories/quickSelectorCategoriesIds'] && this.$store.getters['categories/quickSelectorCategoriesIds'].length > 0 ? 1 : 2this.$nextTick(() => {- if (this.slider) {- this.slider.update()- }- else {+ if (isShow && this.$refs.slider) {this.slider = new Swiper(this.$refs.slider, {slidesPerView: 1,autoHeight: false,@@ -61,6 +58,7 @@ export default {<template lang="pug">TrnFormModal(+ v-if="$store.state.trnForm.modal.categories":show="$store.state.trnForm.modal.categories":title="$t('categories.name')":position="$store.state.ui.mobile ? 'bottom' : null"