Skip to content

EditableText doesn't release input focus #3102

Open
@nate-thegrate

Description

@nate-thegrate

I'm not sure if this is an issue on the Flutter or DartPad side.


Description

It's not possible to edit the code if an EditableText widget has focus.

Steps to reproduce

  1. Create a Flutter app with a TextField/CupertinoTextField (or load a TextField demo).
  2. Click on the text field.
  3. Then try to edit the code.
import 'package:flutter/material.dart';

void main() {
  runApp(
    const MaterialApp(
      home: Scaffold(
        body: Center(child: TextField()),
      ),
    ),
  );
}

TextField bug demo
(Google Chrome, Windows 11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1A high priority bug; for example, a single project is unusable or has many test failurestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions