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

Matching ChangeHandler type to an actual implementation #11324

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

Conversation

rgripper
Copy link

The actual implementation checks event.type and if it's not a browser event it simply consumes the whole event as a value. Right now I cannot register over a custom component with onChange: (value: string) as the typing requires my event to have a target: any property, so primitive values in onChange cause a typescript error.

The actual implementation checks event.type and if it's not a browser event it simply consumes the whole event as a value. Right now I cannot `register` over a custom component with `onChange: (value: string)` as the typing requires my `event` to have a `target: any` property, so primitive values in `onChange` cause a typescript error.
Copy link

codesandbox bot commented Dec 20, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

stale bot commented Mar 13, 2024

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team ❤️

@stale stale bot added the stale label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant