nathanreyes / v-calendar

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

DatePicker: cannot set `position: fixed` to popover's settings #1461

Open Dorianslavov opened 3 months ago

Dorianslavov commented 3 months ago

In my use case DatePicker is being used as a popover which appears when clicking inside an input via the DatePicker's default slot.

The problem is that when it's used inside a container with overflow: hidden this clips the DatePicker popover.

Popper.js has an option to render itself with position: fixed instead of position: absolute by adding

createPopper(triggerElement, {
        ...
        strategy: 'fixed',
})

How can I change the strategy for the DatePicker's popover ?