Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor moved in the middle of ENS name when typing message with mentioned user #11216

Closed
Serhy opened this issue Sep 23, 2020 · 5 comments · Fixed by #11241
Closed

Cursor moved in the middle of ENS name when typing message with mentioned user #11216

Serhy opened this issue Sep 23, 2020 · 5 comments · Fixed by #11241
Assignees

Comments

@Serhy
Copy link
Contributor

Serhy commented Sep 23, 2020

Bug Report

Problem

Mentions can be located by ENS/nickname/three-words name.
In case user has ENS name set, - in the input field it's mention displays ENS name (disregard it was searched by nickname or three-words name or ENS). But when I continue typing message after selecting user from mention list, - cursor automatically moves in the middle of mention (to the point when I entered several chars before selecting user for mention).
Please see gif below for better understanding.

Could not reproduced with nicknames/three-word names
Could not reproduce on iOS, but on Android 9 and Android 8

Expected behavior

User continue typing from the place after ENS name in mention used

Actual behavior

Note here cursor shifted by itself to the point I stopped typing ENS name

2020_09_23_15_24_03_trim

Reproduction

  • Open Status and create new account
  • Add new user by ENS name (e.g. 'statuse2e')
  • Put cursor in the input field
  • Type @stat
  • Tap upon 'statuse2e' user from suggested mentions list
  • Continue typing text

Additional Information

  • Status version: develop 1.7
  • Operating System: Android9, Android8
@Serhy Serhy added the bug label Sep 23, 2020
@rasom
Copy link
Contributor

rasom commented Sep 25, 2020

@Serhy you were able to reliable reproduce this on different devices, right? I'm trying two android devices and on both it works as expected.

@rasom rasom self-assigned this Sep 25, 2020
@Serhy
Copy link
Contributor Author

Serhy commented Sep 25, 2020

@rasom Yes, it's reproducible 100% on Samsung S8 (Android 9). And on Galaxy J7 (Android 8.1)
I found the reason. It is because of Predictive text enabled setting for keyboard.

For example on Galaxy S8 I have Samsung Keyboard set to use as on-screen keyboard and when I turn off Smart typing -> Predictive text setting then have no any issues like that.
Same for another Android device.

@rasom
Copy link
Contributor

rasom commented Sep 25, 2020

@Serhy well then it is rather Samsung keyboard's bug then ours. Not sure what can be done here.

@rasom
Copy link
Contributor

rasom commented Sep 25, 2020

might also be RN thing... checking

@rasom
Copy link
Contributor

rasom commented Sep 28, 2020

facebook/react-native#12462 this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants