nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.42k stars 864 forks source link

When one v-calendar is opened, other is not closing #1388

Closed ituyakpaev closed 1 year ago

ituyakpaev commented 1 year ago

I have date input component with this code: `

`

When i have 1 date component on the page, it opens when focus on input and closes when click somewhere else. When i have 2 components, i click on first one, it's opens. Then i click to the second one, it's opens, but the first one is not closed. Anyone know how to fix it?

sevenmay commented 12 months ago

@ituyakpaev How did you solve the problem?

ElenaPrygun commented 6 months ago

The same problem. Has anyone found a solution? Upd. In my case the problem was with the styles. If I use this solution, the datepickers switch correctly:

` <DatePicker v-model="licenseExpirationDate" :masks="masks" :popover="{ visibility: 'click', placement: 'bottom-end' }" :first-day-of-week="2" :min-date="new Date()"> <template #default="{ inputValue, togglePopover }">

          </template>
        </DatePicker>

`