Howto set saveButtonProps.onClick correctly?
I am trying to overwrite the
saveButtonProps.onClick
function. However i cant quite get it:
Inside another Component:
The first console.log gets fired console.log("saveButtonProps onclick is executed",e)
However the second one is not reached
Can someone help thank you4 Replies
Hey @zomh ,
Can you check this doc?
https://refine.dev/docs/packages/documentation/react-hook-form/useForm/#how-can-i-change-the-form-data-before-submitting-it-to-the-api
useForm | refine
The @pankod/refine-react-hook-form adapter allows you to integrate the React Hook Form library with refine, enabling you to manage your forms in a headless manner. This adapter supports all of the features of both React Hook Form and refine's useForm hook, and you can use any of the React Hook Form examples as-is by copying and pasting them into...
sensitive-blue•2y ago
thanks @Omer
Did it help you? 👀
sensitive-blue•2y ago
yes thank you @Omer its working, i did overwrite saveButton like this:
and then in another component