Skip to content

Simplistic Editor: unexpected behavior of TextInputClient on web #1413

Closed

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)

Activity

  1. domesticmouse commented on Aug 31, 2022

    @domesticmouse
    Contributor
  2. Renzo-Olivares commented on Sep 2, 2022

    @Renzo-Olivares
    Contributor

    Thanks will check this out!

  3. self-assigned this
    on Sep 30, 2022
  4. moved this to To do in Nevercodeon Sep 30, 2022
  5. moved this from To do to In progress in Nevercodeon Sep 30, 2022
  6. moved this from In progress to PR submitted in Nevercodeon Oct 4, 2022
  7. Repository owner moved this from PR submitted to Done (PR merged) in Nevercodeon Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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