How to prevent submit from text_input widget when enter key input?

hello guys.

I have small app with few text_input widget inside st.form.
I want submit data only when user click st.form_submit_button.

but now, if user enter key input on web, submit action progress without st.form_submit_button.

How can I control this issue?
who can teach me to disable “press enter to submit form”?

-------------- code example ----------------------
with st.form(‘enter test’, clear_on_submit=True):
input_text = st.text_input(‘please enter text’)
submit = st.form_submit_button(‘submit’)

if submit:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.