Skip to content

#51 onChange prop #55

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

Merged
merged 4 commits into from
May 1, 2024
Merged

#51 onChange prop #55

merged 4 commits into from
May 1, 2024

Conversation

CarlosNZ
Copy link
Owner

@CarlosNZ CarlosNZ commented May 1, 2024

Fix #51

Also prevented the onUpdate functions from running when the user didn't actually change the value (this prevents an "Undo" mechanism from thinking there is something to be "undone")

@CarlosNZ CarlosNZ merged commit a8e3ef4 into main May 1, 2024
@CarlosNZ CarlosNZ deleted the 51-onChange-prop branch May 1, 2024 06:10
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.

Add an "onChange" prop, which can run a function on every input change (and change the value)
1 participant