react-hook-form-mui icon indicating copy to clipboard operation
react-hook-form-mui copied to clipboard

onChange event is not

Open aniket-teltumbade-au9 opened this issue 1 year ago • 1 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] 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 avatar Oct 26 '24 01:10 aniket-teltumbade-au9

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

aniket-teltumbade-au9 avatar Oct 26 '24 01:10 aniket-teltumbade-au9

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

dohomi avatar Oct 27 '24 07:10 dohomi