-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SelectableText maxLines should behave the same as Text #123658
Comments
SelectableText is based on EditableText, so it behaves the same as TextField (screenshot below). Even though you're right, it probably makes more sense for it to behave like Text. You might want to use SelectionArea here instead of SelectableText, which I believe will eventually replace SelectableText (see #104547). |
@justinmc yes that a little counterintuitive ,and I have already replaced it to SelectionArea |
Sounds good. Let's keep this issue open since I think it is a real bug, though likely SelectableText will be deprecated before it is fixed. |
Steps to Reproduce
Expected results:
if the text less than 10 lines , SelectableText should just wrap the text in lines that the text really needs
Actual results:
SelectableText make the text line as maxLine even the text doesn't need
Code sample
The text was updated successfully, but these errors were encountered: