mattermost / mattermost/react-native-paste-input

Android: onSelectionChange event is not triggered

Open
#45 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
213
Forks
38
Avg merge
12h 25m
Merged PRs (30d)
1

Description

onSelectionChange event is not triggered on android device

<PasteInput
              onPaste={onPaste}
              ref={ref}
              value={text}
              onChangeText={setText}
              multiline
              textBreakStrategy='simple'
              autoCorrect={false}
              importantForAutofill='no'
              cursorColor={theme.color.blue_600}
              onSelectionChange={(e) => {
                 console.log(e) // its not triggered on android device
              }}
            />

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Use the provided PasteInput example as the reproduction entry point on an Android device, confirming whether onSelectionChange fires during selection changes. Then inspect the component's Android-related implementation and tests; done means the event is triggered reliably on Android and the behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.