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

DatePicker: pass ref to main button #1618

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robines
Copy link
Member

@robines robines commented Nov 16, 2024

React Hook Form attempts to pass ref to all fields. Unless specifically excluded, this will cause an error when using DatePicker, as it does not currently accept refs. This PR adds ref, and forwards it to the main button, which I found to be the most logical.

@robines robines self-assigned this Nov 16, 2024
Copy link
Contributor

@Snorre98 Snorre98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

d77bc0a0d01f95f7c4aa53a41ff465c6d882f520658d76c97343b6a6d123680d-4152944230

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 this pull request may close these issues.

2 participants