Skip to content

removeClippedSubviews breaks TextInput text selection on Android #6805

@brentvatne

Description

@brentvatne

If you try to long press a TextInput to copy / cut / delete a block of text inside of a ScrollView with removeClippedSubviews set to true, it will not work -- it will just move your cursor to that position. All other interactions with the TextInput work as expected.

Reproduced here: https://github.com/brentvatne/text-selection-repro

  1. Clone and run the repo, try to select text in the ListView part (first two text inputs). Try in ScrollVIew and View inputs and notice that it works.
  2. Add removeClippedSubviews={false} to the ListView and reload, it should now work.

cc @dmmiller @kmagiera

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions