St.text_area() can't submit on mobile device


st.text_area() use ctrl+enter to submit, which is impossible on mobile. While I can walk around this issue by adding an extra button, but I wonder if there is a cleaner way to do this, like change the default hotkey, or use different hotkeys on different platforms.

PS, I tried the form widget before, it draws an extra border for the form widgets, which seems impossible to get rid of.

PPS, I’m new to streamlit.

Steps to reproduce

Code snippet:
check st.text_area() on mobile browser.

If applicable, please provide the steps we should take to reproduce the error or specified behavior.

Expected behavior:

The widget is able to submit content same as on desktop.

Actual behavior:

We can’t.

Debug info

  • Streamlit version:
  • Python version: 3.10
  • Using Conda
  • OS version: Ubuntu
  • Browser version:

Stupid me, found the solution 2 mins after I posted this. Un-focus the text are (by tapping somewhere else on the screen) works as submitting on mobile.

Doesn’t seem elegant, but works for now.

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