Closed frankli0324 closed 1 year ago
the only temporary "fix" for this I can think of is only setting display: none
on selection preview (:action-row="{ showNow: true, showPreview: false }"
), since the width is dynamically calculated. unless someone want's to document.querySelector
in vue...
The fix is included in the released v6
Describe the bug
When enabling
preset-range
orleft/right-sidebar
, if the width of the added sidebars is small enough, this would happen:the reason is that https://github.com/Vuepic/vue-datepicker/blob/main/src/VueDatePicker/components/DatepickerMenu.vue#L248-L251 the calendar width is only calculated when neither
presetRanges
or sidebars is enabled, and https://github.com/Vuepic/vue-datepicker/blob/main/src/VueDatePicker/components/ActionRow.vue#L2 relies on this value to calculate the overflow:hidden behaviorExpected behavior
the calendar width should always been set, is there any reason it's not set?
Desktop & mobile (please complete the following information):
https://stackblitz.com/edit/vue-e4mx9u