Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
itpalert opened this issue Jul 11, 2024 · 4 comments · Fixed by #20281
Closed

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

itpalert opened this issue Jul 11, 2024 · 4 comments · Fixed by #20281
Assignees
Labels
C: VDateInput T: bug Functionality that does not work as intended/expected
Milestone

Comments

@itpalert
Copy link

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

This comment has been minimized.

@viethungpham1299

This comment has been minimized.

@UnSpiraTive

This comment has been minimized.

@kor3k
Copy link

kor3k commented Sep 7, 2024

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().

@johnleider johnleider added T: bug Functionality that does not work as intended/expected C: VDateInput and removed S: triage labels Feb 4, 2025
@johnleider johnleider added this to the v3.7.x milestone Feb 4, 2025
johnleider added a commit that referenced this issue Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDateInput T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants