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

SetSpan() ends beyond length #81

Open
babitakapoor112 opened this issue Sep 23, 2019 · 9 comments
Open

SetSpan() ends beyond length #81

babitakapoor112 opened this issue Sep 23, 2019 · 9 comments

Comments

@babitakapoor112
Copy link

i am getting this error while removing value from the text input in the rich text editor
Screenshot_1569239974
.

@jsamr
Copy link
Contributor

jsamr commented Sep 25, 2019

@babitakapoor112 Which react-native version are you using? I bet this is an instance of those bugs:

RN TextInput component is unfortunately very unreliable and plagued by this bug which has regressed a lot. I noticed however that expo version of react-native is much more stable, and does not have this bug.

@cinatic
Copy link

cinatic commented Sep 25, 2019

same for me RN 0.60.4

@EremenkoAndrey
Copy link

This error appears when I use PureComponent or shouldComponentUpdate

@edipkavvas
Copy link

Something broken after 0.60 upgrade on Android. Before 0.60, everything was working as expected on Android, but now when i change selection via inputRef.setNativeProps method during onSelectionChange and if my input text is formatted (with dots for example) it gets crash of setSpan ( x .. x ) beyonds length

@anjananeema1102
Copy link

Did anyone find any solution?

@samipshah100
Copy link

samipshah100 commented Feb 12, 2020

I am having the same issue on expo sdk 36

"react-native-cn-richtext-editor": "^2.0.0-rc3",
"expo": "~36.0.0",

@jsamr
Copy link
Contributor

jsamr commented Mar 24, 2020

Fixed in facebook/react-native@6ebd3b0; will be shipped in RN 0.62

@thtRajasthaniGuy
Copy link

"react-native": "0.62.1",
"react-native-cn-richtext-editor": "^2.0.0-rc2"
issue still exists

@miketrinh1995
Copy link

How i fix this error:

  1. Go to File CNTextInput.js in library
  2. Remove line selection = {selection} in render Text input

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

No branches or pull requests

9 participants