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

Even if DatePicker is read-only, the value can be reset #1582

Closed
3 tasks
hirotomoyamada opened this issue May 16, 2024 · 0 comments · Fixed by #1591
Closed
3 tasks

Even if DatePicker is read-only, the value can be reset #1582

hirotomoyamada opened this issue May 16, 2024 · 0 comments · Fixed by #1591
Assignees
Labels
bug Something isn't working

Comments

@hirotomoyamada
Copy link
Member

Which package has an issue?

@yamada-ui/react

Package Version

1.3.10

Description

I expected that when DatePicker's isReadOnly is true, the value cannot be reset, but it can be done.

The following components also have the same problem.

  • RangeDatePicker
  • MultiDatePicker
  • MonthPicker
  • YearPicker
  • MultiSelect
  • MultiAutocomplete

Link to Reproduction

No response

Steps to Reproduce

  1. Set any defaultValue and isReadOnly to DatePicker.
  2. Click on DatePicker's reset icon button.

Browser

None

Operating System

  • macOS
  • Windows
  • Linux

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

Additional Information

No response

@hirotomoyamada hirotomoyamada added the bug Something isn't working label May 16, 2024
@hirotomoyamada hirotomoyamada self-assigned this May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant