I think there's two solutions for this. We can wrap the modal body and footer into a form, but have multiple bodies and footers as there are multiple forms. We can also just catch the enter key and submit the form.