Skip to content

height="content" in text_area not working after v1.55.0 #14222

@ghilesmeddour

Description

@ghilesmeddour

Hi,

I have the impression that height="content" no longer works since the latest version. Here is an example.

Open in Streamlit Cloud

import streamlit as st

user_query = st.text_area(
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit 🐕 !",
    value="""Lorem ipsum dolor sit amet, consectetur adipiscing elit :
    - Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ;
    - Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris ;
    - Duis aute irure dolor in reprehenderit in voluptate velit esse ;
    - Excepteur sint occaecat cupidatat non proident, sunt in culpa qui.""",
    height="content",
)

v1.55.0

Image

v1.54.0

Image

Is this a regression?

  • Yes, this used to work in a previous version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.text_areaRelated to the `st.text_area` widgetpriority:P2Medium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedtype:regressionThis bug is a regression from previous behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions