Submit Message useAssistant Vercel AI SDK UI

I am trying to hit submitMessage (Form submission handler) on button click, but it does not triggers and call the submitMessage method.

1 Like