DateTimePicker sets seconds to new Date()
when updating time value, when withSeconds
is not specified
#4737
Labels
Fixed patch
Completed issues that will be published with next patch (1.0.X)
What package has an issue
@mantine/dates
Describe the bug
DateTimePicker
, andwithSeconds={false}
onChange
new Date()
seconds (i.e. the current times' seconds)What version of @mantine/hooks page do you have in package.json?
6.0.19
If possible, please include a link to a codesandbox with the reproduced problem
No response
Do you know how to fix the issue
Yes
Are you willing to participate in fixing this issue and create a pull request with the fix
Yes
Possible fix
mantine/src/mantine-dates/src/components/DateTimePicker/DateTimePicker.tsx
Line 129 in 0455a0f
Change ☝️ to
seconds === undefined ? timeDate.setSeconds(0) : timeDate.setSeconds(seconds);
The text was updated successfully, but these errors were encountered: