How to stop a popup from closing when hitting enter in an input box

I have a popup with a few inputs (text, multiline text and address). For some of the inputs, when the user types their value and hits the enter key, it “submits” the popup somehow activating my “apply” button on the bottom of the popup form. I never created any kind of event action to do this, it’s just happening. I have my own “apply” and “cancel” buttons that do the work of closing the popup.
How do I prevent the “enter” key from doing this?

Does anyone have a fix for this?

On all your inputs check “Prevent enter from submitting”


Thank you, it’s working just fine now.

1 Like