JSFiddle - React, Tailwind, and code Playground
HTML
<h1>Form is not submitted on enter keypress.</h1>
<button id="open-dialog-form">Open Dialog Form</button>
<div id="dialog-form">
<form>
<input type="text"/>
<input type="text"/>
</form>
</div>
JavaScript
$("#dialog-form").dialog({
autoOpen: false
});
$("#open-dialog-form").click(function() {
$("#dialog-form").dialog("open");
});