Skip to content

Simplistic Editor: unexpected behavior of TextInputClient on web #1413

@LucasAschenbach

Description

@LucasAschenbach

When using the simplistic_editor, the TextEditingValue seems to fork into two different states after delete operations while skipping characters during deletion.

Steps to Reproduce

  1. Open https://flutter.github.io/samples/web/simplistic_editor/#/ (or build for web)
  2. Clear text field
  3. Type afafaf
  4. Perform 6 delete operations (During deletion, the text value will alternate between two states. The last value is aaf while an empty text value would be expected)
  5. Upon pressing the right arrow key, the input will change to fff

Notice how there are unsolicited NonTextUpdate operations added, whenever a character is skipped.

On mobile (iOS) and desktop (macOS) the demo works as expected.


Browser: Chrome 104.0.5112.101 (Official Build) (arm64)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Done (PR merged)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions