mantinedev / mantine

A fully featured React components library
https://mantine.dev
MIT License
26.83k stars 1.9k forks source link

@mantine/dates TimeInput enforces current date #2759

Closed gdostie closed 1 year ago

gdostie commented 2 years ago

What package has an issue

@mantine/dates

Describe the bug

Whenever the TimeInput value changes, it uses the current date (today) instead of the provided date in the value prop.

What version of @mantine/hooks page do you have in package.json?

5.6.0

If possible, please include a link to a codesandbox with the reproduced problem

https://codesandbox.io/s/mantine-timeinput-issue-kxgsq1?file=/src/App.tsx

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

Yes

Possible fix

I don't have a fix, but I did some very quick digging and the code causing the issue is probably around here.

rtivital commented 2 years ago

The issue with TimeInput will be resolved in 6.0.0 release

rtivital commented 1 year ago

Fixed in 6.0