-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] TimeField throws an error when using AdapterLuxon Duration
#11947
Comments
Duration
Hey @LukasPieger1 ... We currently do not support @LukasTy should we put this on our board or wait for upvotes? |
As @michelengelen stated, we do not support the notion of <TimeField
label="Basic time field"
format="H'h' m'm' s's'"
defaultValue={DateTime.fromObject({ hour: 0, minute: 0, second: 0 })}
/> Maybe you could get by calculating the diff between the set As for the option to enter actual |
Oh I see, thank you for your response. |
Steps to reproduce
Trying to use the TimeField with a Luxon-Adapter results in an error.
Link to live example: https://codesandbox.io/p/sandbox/new-sunset-4kfyyf?file=%2Fdemo.tsx%3A13%2C84
Steps:
Current behavior
Throws an error
Expected behavior
Doesn't throw an error
Context
I am building an android app with capacitor & React and I am trying to use the TimeField as a Duration-picker as demonstrated in this example.
Your environment
npx @mui/envinfo
System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
Binaries:
Node: 21.3.0 - /usr/local/bin/node
npm: 10.3.0 - /usr/local/bin/npm
pnpm: 8.15.1 - /usr/local/bin/pnpm
Browsers:
Chrome: 121.0.6167.139
npmPackages:
@emotion/react: ^11.11.1 => 11.11.1
@emotion/styled: ^11.11.0 => 11.11.0
@mui/base: 5.0.0-beta.25
@mui/core-downloads-tracker: 5.14.19
@mui/icons-material: ^5.14.1 => 5.14.19
@mui/material: ^5.14.1 => 5.14.19
@mui/private-theming: 5.14.19
@mui/styled-engine: 5.14.19
@mui/system: 5.14.19
@mui/types: 7.2.10
@mui/utils: 5.14.19
@mui/x-date-pickers: ^6.18.4 => 6.18.6
@types/react: ^18.0.17 => 18.2.41
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
typescript: ^4.1.3 => 4.9.5
Search keywords: TimeField AdapterLuxon Luxon Duration LocalizationProvider
Search keywords:
The text was updated successfully, but these errors were encountered: