Skip to content

Commit 48115f4

Browse files
committed
fix: Remove redundant disabled flag on wrapper div without teleport (fixes #800)
1 parent 8624cd5 commit 48115f4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/VueDatePicker/VueDatePicker.vue

+6-4
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,12 @@
240240
241241
const theme = computed(() => (props.dark ? 'dp__theme_dark' : 'dp__theme_light'));
242242
const teleportProps = computed(() => {
243-
return {
244-
to: typeof props.teleport === 'boolean' ? 'body' : props.teleport,
245-
disabled: !props.teleport || defaultedInline.value.enabled,
246-
};
243+
return props.teleport
244+
? {
245+
to: typeof props.teleport === 'boolean' ? 'body' : props.teleport,
246+
disabled: !props.teleport || defaultedInline.value.enabled,
247+
}
248+
: {};
247249
});
248250
const menuWrapProps = computed(() => {
249251
return { class: 'dp__outer_menu_wrap' };

0 commit comments

Comments
 (0)