Skip to content

Commit a65a54e

Browse files
committed
Solved the problem connected with modal
1 parent 8a2f06b commit a65a54e

File tree

3 files changed

+7
-47
lines changed

3 files changed

+7
-47
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"name": "vue-functional-calendar",
88
"description": "A style-uninstallable datepicker component for Vue.js",
9-
"version": "2.2.7",
9+
"version": "2.3.0",
1010
"license": "MIT",
1111
"repository": {
1212
"type": "git",

src/components/FunctionalCalendar.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@click="showCalendar = !showCalendar">
2424
</div>
2525

26-
<div class="vfc-main-container" v-if="showCalendar" ref="mainContainer"
26+
<div class="vfc-main-container" v-show="showCalendar" ref="mainContainer"
2727
:class="{'vfc-modal': fConfigs.isModal && (fConfigs.isDatePicker || fConfigs.isDateRange)}">
2828
<template v-if="showMonthPicker">
2929
<div class="vfc-months-container">
@@ -731,8 +731,13 @@
731731
setCalendarStyles() {
732732
let day = this.$refs.day[0];
733733
let container = this.$refs.mainContainer;
734+
container.style.display = "";
734735
let height = container.clientHeight + day.clientHeight;
735736
container.style.height = height + "px";
737+
738+
if(this.fConfigs.isModal){
739+
container.style.display = "none"
740+
}
736741
}
737742
}
738743
}

src/components/MonthYearPicker.vue

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)