So I have to implement a form in modal, as you can see, the button in the modal are not the buttons in the form. I created the form as a child component of the modal. H
The simplest solution would be to use HTML form Attribute
Add "id" attribute to your form: id='my-form'
Add the appropriate "form" attribute to the needed button outside of the form: form='my-form'