Pretty basic question: I have a modal with some Settings, but when you hit enter, the modal doesn’t submit. The obvious approach would be to wrap it in a form and handle accordingly but I am using the built-in Settings
API for this. Is there a “blessed” way of implementing forms in a modals?
We ended up using Modal#scope:
In case anyone comes across this for themselves.
Seems like now you have to include this after in the event handler as well:
evt.preventDefault();
evt.stopPropagation();
You should not be using evt.stopPropagation here