We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@mantine/dates
When the fixOnBlur prop is set to false on DatePicker component. The onChange method is still called when the field is unfocused.
fixOnBlur
false
DatePicker
onChange
This can produce random outcomes on complex dynamic forms. In NextJs project, the onChange method is called multiple times causing a lot of bugs.
All
React : https://codesandbox.io/s/strange-satoshi-b0uz9?file=/src/App.tsx NextJs : https://codesandbox.io/s/next-datepicker-cmi67?file=/pages/index.tsx
As you can see, it's randomly impossible to clear the input on a simple Next project.
No
No response
The text was updated successfully, but these errors were encountered:
Fixed in 3.4.3
Sorry, something went wrong.
No branches or pull requests
What package has an issue
@mantine/dates
Describe the bug
When the
fixOnBlur
prop is set tofalse
onDatePicker
component. TheonChange
method is still called when the field is unfocused.This can produce random outcomes on complex dynamic forms. In NextJs project, the
onChange
method is called multiple times causing a lot of bugs.In which browser did the problem occur
All
If possible, please include a link to a codesandbox with the reproduced problem
React : https://codesandbox.io/s/strange-satoshi-b0uz9?file=/src/App.tsx
NextJs : https://codesandbox.io/s/next-datepicker-cmi67?file=/pages/index.tsx
As you can see, it's randomly impossible to clear the input on a simple Next project.
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
No response
Possible fix
No response
The text was updated successfully, but these errors were encountered: