Skip to content

[web]: Selection in multiline text fields doesn't work  #41701

@sroddy

Description

@sroddy

When using a multiline Text field, the underlying <textarea> is rendered correctly but the text inside it doesn't wrap properly. for this reason text selection is completely off and looks broken.

I found out that a good way to mitigate the issue is to remove the ..whiteSpace = 'pre' setting.
This doesn't entirely solve issues when the text overflows and needs to be scrolled, but at least works decently on an "average" scenario, until #32213 is fixed properly.

I'm wondering what was the rationale for the setting of the whiteSpace property. Perhaps it made sense when it was used just with one-liner <input> elements?

Metadata

Metadata

Assignees

Labels

a: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.platform-webWeb applications specifically

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions