MonthPicker, TimePicker not working
s-fog opened this issue · 5 comments
Hi. Have strange issue. Iam doing just same in docs, and picker not working.
Html
<Datepicker v-model="mmonth" monthPicker />
App.vue
const ..., mmonth = ref({ month: new Date().getMonth(), year: new Date().getFullYear() }) return { ..., mmonth ... }
Renders regular datepicker without any default value.
Opening as regular datepicker. I want monthpicker.
I tried initialize mmonth.month and mmonth.year inside onMounted method, but it works the same way.
I tried range datepicker and it works as expected. But this no.
What am i doing wrong?
Are you using component in the browser script tag? Or some bundler like Vue-CLI or Vite?
Thanks for reply! Iam using laravel + vue
mix.js("resources/js/app.js", "public/js") .vue()
Launching is npm run watch
Installing by this guide https://arter.dev/how-to-install-vue-3-in-laravel-8-from-scratch
Can you try passing prop like month-picker
and tell me if it works
It works! Thank you so much. I it described somewhere in docs?
There is info when you register the component in the browser, I guess, this is happening when using .min.js build, I'll see what is going on there.