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

onChange event is not #326

Open
2 tasks done
aniket-teltumbade-au9 opened this issue Oct 26, 2024 · 2 comments
Open
2 tasks done

onChange event is not #326

aniket-teltumbade-au9 opened this issue Oct 26, 2024 · 2 comments

Comments

@aniket-teltumbade-au9
Copy link

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

The onChange event does not trigger any response, despite providing the correct event handler.

Expected behavior 🤔

The onChange event does not trigger any response, despite providing the correct event handler.

Steps to reproduce 🕹

  1. Install the react-hook-form-mui package and set up the SliderElement.
  2. Pass an onChange event handler to SliderElement.
  3. Adjust the slider to change its value.
  4. Observe that the onChange event does not fire as expecte
@aniket-teltumbade-au9
Copy link
Author

@dohomi
Copy link
Owner

dohomi commented Oct 27, 2024

It would be advised to use useWatch("name") of react hook form to react to changes of the slider.

https://stackblitz.com/edit/react-bglsco?file=src%2FBudgetField.tsx

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

No branches or pull requests

2 participants