vuetifyjs / vuetify

🐉 Vue Component Framework
https://vuetifyjs.com
MIT License
39.62k stars 6.95k forks source link

[Bug Report][3.6.12] Error in VDateInput with @date-io adapter #20146

Open itpalert opened 1 month ago

itpalert commented 1 month ago

Environment

Vuetify Version: 3.6.12 Vue Version: 3.4.31 Browsers: Chrome 117.0.0.0 OS: Linux x86_64

Steps to reproduce

import { createVuetify } from 'vuetify'
import DayJsAdapter from '@date-io/dayjs'

export const vuetify = createVuetify({
  theme: {
    defaultTheme: 'light',
    //
  },
  date: {
    adapter: DayJsAdapter,
  },
})
<template>
  <v-app>
    <v-container>
      <v-date-input label="Date input"></v-date-input>
    </v-container>
  </v-app>
</template>

Expected Behavior

I can save the date.

Actual Behavior

With dayJs adapter getting this error: t.clone is not a function

With luxon adapter getting error for: value.getMonth is not a function

Reproduction Link

https://play.vuetifyjs.com/#...

pecuchet commented 1 month ago

Same here...

viethungpham1299 commented 1 month ago

Same here... can anyone help?

UnSpiraTive commented 1 month ago

Same here

kor3k commented 21 hours ago

also got error with js-joda adapter. TypeError: temporal.query is not a function seems like the VDateInput always produces native js Date() and does not use adapter.date().