Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Commit 0023f12

Browse files
committed
fix: Wrong layout in action row with presetRanges
1 parent a1f2a11 commit 0023f12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Vue3DatePicker/components/DatepickerMenu.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@
303303
304304
onMounted(() => {
305305
menuMount.value = true;
306-
getCalendarWidth();
306+
if (!props.presetRanges?.length) {
307+
getCalendarWidth();
308+
}
307309
if (!props.inline) {
308310
nextTick(() => emit('dpOpen'));
309311
}

0 commit comments

Comments
 (0)