[TimePicker] Issue typing seconds with AdapterDateFns using mask editing #7935
Labels
component: pickers
This is the name of the generic UI component, not the React module!
component: TimePicker
The React component.
feature: Mask editing
Will be removed once we have the new field components.
Duplicates
Latest version
Steps to reproduce 馃暪
Link to live example: https://codesandbox.io/s/unruffled-galois-81owin
Steps:
09280
(just one0
at the end)Current behavior 馃槸
It fills in a second zero, so if you're typing fast and want to enter the time
09:28:02
rather than09:28:00
, it ignores the2
.Expected behavior 馃
It allows you to type the full time.
Context 馃敠
This was reported by one of my users: scottlamb/moonfire-nvr#256. In my software, we often want to snip clips of video to precise second boundaries, and this makes it awkward to do so.
I've noticed the behavior is dependent on the supplied
dateAdapter
. WithAdapterDayJs
, as in the unforked example from the docs, it works as I'd expected. WithAdapterDateFns
, I get the broken behavior.Your environment 馃寧
I'm using Chrome 109.0.5414.119 on macOS.
npx @mui/envinfo
Order ID 馃挸 (optional)
No response
The text was updated successfully, but these errors were encountered: