Issue with onSubmit Function Not Triggering

Hi everyone,

I am building an admin panel for news website with refine, I am a beginner, my project involves a form, I have a page to create an article (with title, body of the article, multiple categories, images and videos ) so administrator will be able to create the content and post it later on the frontend part of the website,

I have an issue issue with the
onSubmit
function not triggering when I submit the form.

  • I've implemented the form using the
    @refinedev/react-hook-form
    library.
  • I have a component for the form where I'm using the
    handleSubmit
    function.
However, when I submit the form, nothing happens, and the
onSubmit
function doesn't seem to execute. I am unable to find the issue,

I am including screenshots of relevant code, If any other files might be relevant please tell me

any kind of advice will be a big help

Thanks
create-post.tsx.png
Form.png
Was this page helpful?