Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Date picker does not expanded over parent div component

I am using vuexy admin dashboard template in my Vue.js project and I am using the date picker component inside the collapse component provided by vuexy theme. when I click on date picker it should expand over the parent but it did not work as the following screenshot.

enter image description here

I tried to override the inner class of date pickers expandable component and make it to use position: fixed; then the expandable part is visible but it stays at the same position when we scroll as the following screenshot.

enter image description here

How can I fix this issue using CSS? (or even library-specific solution also acceptable)

like image 793
Vikum Dheemantha Avatar asked Sep 18 '25 00:09

Vikum Dheemantha


1 Answers

Just use the teleport attribute

<template>
    <VueDatePicker v-model="date" :teleport="true" />
</template>

<script setup>
import { ref } from 'vue';

const date = ref(new Date());
</script>

enter image description here

vue3datepicker.com/props/positioning/#teleport

like image 137
Thyerri Mezzari Avatar answered Sep 19 '25 13:09

Thyerri Mezzari