My date picker correctly expands its modal but doesn't show the dates.
Datepicker works perfectly on the codepen, it shows the dates but the same code doesn't work in my application. Here is the link to Codepen:
https://codepen.io/anon/pen/QPBzLZ
And here is my code:
.
.
.
<v-menu
v-model="menu2"
:close-on-content-click="false"
:nudge-right="40"
lazy
transition="scale-transition"
offset-y
full-width
min-width="290px"
>
<template v-slot:activator="{ on }">
<v-text-field
v-model="date"
label="Date"
readonly
v-on="on"
></v-text-field>
</template>
<v-date-picker v-model="date" @input="menu2 = false" no-title scrollable></v-date-picker>
</v-menu>
.
.
.
<script>
export default {
data: () => ({
date: new Date().toISOString().substr(0, 10),
menu2: false
})
}
</script>
Does anyone know what the problem is, and what's the best way to solve it?