You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a typography.paragraph inside with ellipsis: { rows: 2, expandable: true }
render a long text inside the typography with multiple lines set by \n
What is expected?
the text shows ellipsis after 2 lines and a button to expand the text
What is actually happening?
ellipsis doesn't work
Environment
Info
antd
5.17.2
React
react 18
System
macos
Browser
chrome
If the expandable is removed, then the text has the ellipsis but there's no way to expand it.
Not sure if this should even be a new component. Use case: from a Input.TextArea, allow the user to create a multiline text. Save that on DB, and when fetching and rendering, be able to render that text in multiline as well, but be able to use an expandable ellipsis if the content is too long
The text was updated successfully, but these errors were encountered:
Reproduction link
Steps to reproduce
What is expected?
the text shows ellipsis after 2 lines and a button to expand the text
What is actually happening?
ellipsis doesn't work
If the expandable is removed, then the text has the ellipsis but there's no way to expand it.
Not sure if this should even be a new component. Use case: from a Input.TextArea, allow the user to create a multiline text. Save that on DB, and when fetching and rendering, be able to render that text in multiline as well, but be able to use an expandable ellipsis if the content is too long
The text was updated successfully, but these errors were encountered: