streamlit: [Bug] `st.chat_input` not rendering on Android in Streamlit 1.46.0 (regression from 1.45.0)
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
Summary
In Streamlit version 1.46.0, the st.chat_input() component fails to render on Android mobile devices. This issue does not occur in version 1.45.0 and below, nor does it affect iOS or desktop platforms. It appears to be a regression related to layout or viewport handling introduced in 1.46.0.
Reproducible Code Example
### Steps to Reproduce
1. Create a minimal Streamlit app:
import streamlit as st
st.title("Chat Test")
st.write("Try asking something below:")
# Quick options for the user
options = ["What's your name?", "What can you do?", "Tell me something fun", "Help"]
# Display the pills with a title
selected_pill = st.pills("Quick questions", options, key="selected_pill")
# Show the selected pill
if selected_pill:
st.write(f"You selected: {selected_pill}")
# Chat input
user_input = st.chat_input("Type your question here")
# Show the input from chat
if user_input:
st.write(f"You asked: {user_input}")
### Steps To Reproduce
Run the app:
streamlit run app.py
Open the app on an Android device using Chrome or Samsung Internet
Observe that the chat input bar does not appear at all
### Expected Behavior
Expected Behavior
The st.chat_input() component should render correctly at the bottom of the screen, even on Android mobile browsers, just like it does in version 1.45.0 and in iOS.
### Current Behavior
Actual Behavior
On Android (Brave Browser), the input bar is completely missing.
The input works fine on iOS and desktop.
Downgrading to streamlit==1.45.0 makes the issue disappear.
### Is this a regression?
- [x] Yes, this used to work in a previous version.
### Debug info
Environment Info
Streamlit version: 1.46.0 (bug), 1.45.0 (works)
Python version: 3.11
OS: Android 12+
Browsers tested: Brave
Devices tested: Pixel 5, Samsung Galaxy S23
### Additional Information
The bug may be related to changes in layout behavior (100vh, flex, etc.).
We verified with and without custom CSS. Even with minimal layout, the input bar fails to appear in 1.46.0.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 3
- Comments: 15
Just FYI, I tested this on Brave on a Pixel 9 and did not have an issue.