-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
flutter/engine
#19924Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 1.20Found to occur in 1.20Found to occur in 1.20found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically
Description
Steps to Reproduce
Dartpad Example: https://dartpad.dev/c377b45f28f1cd60f23c5ddef9c88524
- Run
flutter create bug. - Update the files as follows:
main.dart:
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: MyWidget(),
),
),
);
}
}
class MyWidget extends StatefulWidget {
createState() => MyWidgetState();
}
class MyWidgetState extends State<MyWidget> {
TextEditingController _cont1;
TextEditingController _cont2;
@override
initState() {
_cont1 = TextEditingController();
_cont2 = TextEditingController();
_cont1.text = 'Text selection works here';
_cont2.text = 'Text selection does not work\nwhen text is multi-line.';
super.initState();
}
@override
Widget build(BuildContext context) {
return Column(
children: [
TextField(controller: _cont1),
TextField(controller: _cont2, maxLines: null),
],
);
}
}
- On flutter web, I can not select text with the mouse on the multi-line text field.
Logs
a-boujane, kunit1, jmolins, pymq, wreppun and 18 moretal412, cacianokroth, zibizz1, sam-parks, oantajames and 2 moreoantajames, rs5173, bediazu, n3o2k7i8ch5 and r100-stack
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.found in release: 1.20Found to occur in 1.20Found to occur in 1.20found in release: 1.21Found to occur in 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onplatform-webWeb applications specificallyWeb applications specifically

