You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would be willing to implement a fix for this issue
The text was updated successfully, but these errors were encountered:
openscript
changed the title
MonthPicker in range mode in controlled form endlessly useEffect calls regression
MonthPicker in range mode in controlled form endlessly useEffect calls
Jan 7, 2025
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.15.3
What package has an issue?
@mantine/dates
What framework do you use?
Vite
In which browsers you can reproduce the issue?
All
Describe the bug
When using the
<MonthPicker>
in range mode within a controlled formuse-date-state.ts
endlessly callsuseEffect
atmantine/packages/@mantine/dates/src/hooks/use-dates-state/use-dates-state.ts
Lines 169 to 178 in 476b417
The controlled form sets the value of the
<MonthPicker>
to[new Date(), null]
.If possible, include a link to a codesandbox with a minimal reproduction
https://codesandbox.io/p/sandbox/mantine-react-template-forked-qtxcvf
Possible fix
In Version 7.15.1 the issue was not present.
Self-service
The text was updated successfully, but these errors were encountered: