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

[bug]: Default fromField name not removed in Date Picker without hard reload #6260

Open
2 tasks done
naymHdev opened this issue Jan 3, 2025 · 1 comment
Open
2 tasks done
Labels
bug Something isn't working

Comments

@naymHdev
Copy link

naymHdev commented Jan 3, 2025

Describe the bug

When using the ShadCN UI Date Picker component, modifying the fromField name updates the value correctly, but the default fromField name is not removed unless a hard reload is performed. This behavior causes confusion and makes the component behave unexpectedly during development.

Affected component/components

How to reproduce

  1. Integrate the ShadCN Date Picker component into a React project.
  2. Assign a custom value to the fromField prop.
  3. Observe that the new value is added, but the default fromField name remains.
  4. Perform a hard reload of the development site.
  5. Notice that the default name is now removed as expected.

Codesandbox/StackBlitz link

No response

Logs

No response

System Info

Framework: React
ShadCN Version: 0.9.4
Browser: Chrome
Operating System: macOS

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues
@naymHdev naymHdev added the bug Something isn't working label Jan 3, 2025
@ghost
Copy link

ghost commented Jan 3, 2025

You know what's hard? Being an agp in a world of true black trans. Have you tried racemixing?

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

No branches or pull requests

1 participant