Skip to content

onSelectionChanged and selectionchange events not fired on TextInput when keyboardType is 'email-address' #2719

Open
@Sharcoux

Description

@Sharcoux

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

When keyboardType is set to 'email-address' on a TextInput, the selectionchange event and the onSelectionChange callback are not being fired.

Expected behavior

The event should be fired, just like it is fired with other values of keyboardType

Steps to reproduce

Create a TextInput
Add console.log as onSelectionChange: onSelectionChange={console.log}
type text in the TextInput
move the caret within the TextInput

Test case

https://codesandbox.io/p/sandbox/currying-sea-vlm9sg

Additional comments

No response

Activity

Sharcoux

Sharcoux commented on Oct 7, 2024

@Sharcoux
Author

Ok, the problem doesn't come from react-native-web :

https://codesandbox.io/p/sandbox/currying-sea-vlm9sg?file=%2Fsrc%2FApp.js%3A11%2C9

However, I don't know who I should report this to, because it happens to chrome AND Firefox. Who can be the culprit?

Sharcoux

Sharcoux commented on Oct 9, 2024

@Sharcoux
Author

Opened in React

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @Sharcoux

      Issue actions

        onSelectionChanged and selectionchange events not fired on TextInput when keyboardType is 'email-address' · Issue #2719 · necolas/react-native-web