Disable edit/search on st.selectbox widget

Hello everyone,

I am building an app that, among others, imports data into a pandas DataFrame, then shows a line plot based on a specific column. This column is selected via a st.selectbox widget.

My question is whether (and how) I can disable editting the current option of the selectbox (even if this also disables searching for a specific option).

My main reason is that clicking on the selectbox on mobile fires up the on-screen keyboard, which is not how I would like the app to function.

Thank you for your time!

7 Likes