react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

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

Open Sharcoux opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] 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

Sharcoux avatar Sep 27 '24 17:09 Sharcoux

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 avatar Oct 07 '24 16:10 Sharcoux

Opened in React

Sharcoux avatar Oct 09 '24 11:10 Sharcoux