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

QInput API does not list datetime-local as allowed type #15929

Closed
septatrix opened this issue Jun 1, 2023 · 0 comments
Closed

QInput API does not list datetime-local as allowed type #15929

septatrix opened this issue Jun 1, 2023 · 0 comments
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar kind/bug 🐞 Qv2 🔝 Quasar v2 issues

Comments

@septatrix
Copy link

What happened?

The API documentation does not list the datetime-local type as one of the permitted types for the QInput component

What did you expect to happen?

The "datetime-local" type should be listed just like all other types supported by native <input> already are.

Reproduction URL

https://codepen.io/Septatrix/pen/eYPwLXr

How to reproduce?

Cannot be seen on codepen as it does not allow type checking. It can however be seen in the documentation: https://quasar.dev/vue-components/input#qinput-api, and in the underlying JSON file:

"values": [
"text", "password", "textarea", "email", "search",
"tel", "file", "number", "url", "time", "date"
],

Flavour

Vite Plugin (@quasar/vite-plugin)

Areas

Components (quasar)

Platforms/Browsers

Firefox, Chrome, Safari, Microsoft Edge, iOS, Android, Electron, Other

Quasar info output

No response

Relevant log output

Nuxi 3.5.0                                                                                                                      9:51:27 AM
pages/content.vue:43:13 - error TS2322: Type '"datetime-local"' is not assignable to type '"number" | "textarea" | "time" | "text" | "search" | "url" | "password" | "email" | "tel" | "file" | "date" | undefined'.

43             type="datetime-local"
               ~~~~

  node_modules/.pnpm/[email protected]/node_modules/quasar/dist/types/index.d.ts:5391:3
    5391   type?:
           ~~~~
    The expected type comes from property 'type' which is declared here on type 'VNodeProps & AllowedComponentProps & ComponentCustomProps & QInputProps & Record<string, unknown>'


Found 1 error in pages/content.vue:43

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/components bug/1-repro-available A reproduction is available and needs to be confirmed. flavour/vite-plugin Bugs related to Vite usage with Quasar kind/bug 🐞 Qv2 🔝 Quasar v2 issues
Projects
None yet
Development

No branches or pull requests

1 participant