Skip to content
New issue

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

DateInput component with "clearable" does not clear previously selected value in UI after clicking "x" to clear until the field blurs #4481

Closed
ipurra opened this issue Jun 28, 2023 · 1 comment · Fixed by #4486

Comments

@ipurra
Copy link

ipurra commented Jun 28, 2023

What package has an issue

@mantine/dates

Describe the bug

Using the DateInput field use the following steps to reproduce my issue:

  1. Add a DateInput field with the clearable property set to true to your page (see sandbox for code example)
  2. Navigate to the date input field in the UI
  3. Click in the field, select any date, the picker closes
  4. Click in the field again to open the date picker
  5. When the date picker is open and there is a value in the field click the x button inside the input field to clear the field
  6. Notice that the actual value now is set to null but the previously selected value is still visible in the input field until the field is blurred

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

6.0.15 (sandbox 6.0.8, same issue)

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

https://codesandbox.io/s/reverent-night-y87t8x?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

None

Possible fix

No response

@mrbnclt
Copy link
Contributor

mrbnclt commented Jun 29, 2023

I'd like to work on the fix for this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants