Thanks to visit codestin.com
Credit goes to github.com

Skip to content

st.chat_input does not expand to accommodate a multiline placeholder like it does for a multiline prompt #10611

@sfc-gh-dmatthews

Description

@sfc-gh-dmatthews

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

If you type a long prompt (or multiline prompt) into st.chat_input, the widget will grow to accommodate the size. However, if the placeholder text is long or multilined, it won't.

Reproducible Code Example

import streamlit as st

L,R = st.columns(2)
L.chat_input("Meow "*20)
R.chat_input("Meow\n"*20)

Steps To Reproduce

No response

Expected Behavior

A multiline or long placeholder should be fully visible.

Current Behavior

Image

Is this a regression?

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

Debug info

  • Streamlit version:
  • Python version:
  • Operating System:
  • Browser:

Additional Information

No response

Metadata

Metadata

Assignees

Labels

feature:st.chat_inputRelated to the `st.chat_input` widgetpriority:P3Medium prioritystatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions