Relative Content

Tag Archive for reactjstypescriptreact-hook-formshadcnui

onChange doesn’t work on Custom Input inside Controller Wrapper

I’m working on a React project with TypeScript, using react-hook-form and the form components from shadcn/ui (shadcn/ui form example).
I’ve created a custom Input component with a button (containing a pen icon) that toggles the readonly property of the input.

React-hook-form: how to add logic to the onChange property in a custom input

I am working in a project using react with typescript, and I’m using react-hook-form and the form component that comes with shadcn/ui: https://ui.shadcn.com/docs/components/input#form
For my case, I created a custom Input component which has a button inside of it (with a pen icon), which will toggle on and off the **readonly **property of the input, but i want to add another functionality:

React-hook-form: how to add logic to the onChange property in a custom input

I am working in a project using react with typescript, and I’m using react-hook-form and the form component that comes with shadcn/ui: https://ui.shadcn.com/docs/components/input#form
For my case, I created a custom Input component which has a button inside of it (with a pen icon), which will toggle on and off the **readonly **property of the input, but i want to add another functionality:

React-hook-form: how to add logic to the onChange property in a custom input

I am working in a project using react with typescript, and I’m using react-hook-form and the form component that comes with shadcn/ui: https://ui.shadcn.com/docs/components/input#form
For my case, I created a custom Input component which has a button inside of it (with a pen icon), which will toggle on and off the **readonly **property of the input, but i want to add another functionality:

React-hook-form: how to add logic to the onChange property in a custom input

I am working in a project using react with typescript, and I’m using react-hook-form and the form component that comes with shadcn/ui: https://ui.shadcn.com/docs/components/input#form
For my case, I created a custom Input component which has a button inside of it (with a pen icon), which will toggle on and off the **readonly **property of the input, but i want to add another functionality: