Skip to content

Commit 2fdb326

Browse files
committed
fix: Multi-calendars navigation in inline remounts on position update months (fixes #1183)
1 parent 32d2369 commit 2fdb326

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/VueDatePicker/VueDatePicker.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
118118
const slots = useSlots();
119119
const isOpen = ref(false);
120-
const shouldRender = ref(false);
120+
const shouldRender = ref(inline.value.enabled);
121121
const modelValueRef = toRef(rootProps, 'modelValue');
122122
const timezoneRef = toRef(rootProps, 'timezone');
123123
@@ -185,10 +185,12 @@
185185
);
186186
187187
watch([placement, y], () => {
188-
shouldRender.value = false;
189-
nextTick().then(() => {
190-
shouldRender.value = true;
191-
});
188+
if (!inline.value.enabled && !rootProps.centered) {
189+
shouldRender.value = false;
190+
nextTick().then(() => {
191+
shouldRender.value = true;
192+
});
193+
}
192194
});
193195
194196
const { parseExternalModelValue, emitModelValue, formatInputValue, checkBeforeEmit } = useExternalInternalMapper();

0 commit comments

Comments
 (0)