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 of TextInput auto jumping crazy after input text on Android with RN 0.60.3 #70

Closed
asiadigitalhub opened this issue Aug 1, 2019 · 11 comments
Labels
bug Something isn't working

Comments

@asiadigitalhub
Copy link

Thanks for this helpful lib. It already working fine with me on RN 0.57.3 but after I update version, this bug is appear. I already debug many times, maybe relate to TextInput on CNTextInput. The onSelectionChange call twice time every type any text input and return different selection value.

@asiadigitalhub asiadigitalhub changed the title Cursor of TextInput auto jumping crazy after input text on Android with RN 0.6.3 Cursor of TextInput auto jumping crazy after input text on Android with RN 0.60.3 Aug 1, 2019
@nishiltamboli
Copy link

I can confirm I also face the same issue with RN 0.60+ version.

@rezaarifian
Copy link

same issue on RN 0.60.4

no pull request for next release

@dancomanlive
Copy link

Same on 0.60.0. Any solution?

@imnapo
Copy link
Owner

imnapo commented Aug 16, 2019

Hi guys, we are working on this issue and we will try to fix it as soon as possible.

@imnapo imnapo added the bug Something isn't working label Aug 16, 2019
@imnapo
Copy link
Owner

imnapo commented Aug 29, 2019

It seems this issue is related to react-native TextInput Component.
You may follow related issues : facebook/react-native#26047 and facebook/react-native#25265

@danilolucasmd
Copy link

same issue on RN 0.59.8

@srhtylmz19
Copy link

any update?

@ohpax
Copy link
Collaborator

ohpax commented Sep 8, 2019

I am going to close this because as @imnapo said this issue is with react-native library.

@ohpax ohpax closed this as completed Sep 8, 2019
@srhtylmz19
Copy link

its not related with react native , cus it works well with TextInput of react native

@sushantb21
Copy link

sushantb21 commented Oct 16, 2019

use this code
<CNRichTextEditor
ref={input => this.editor = input}
onSelectedTagChanged={() => this.onSelectedTagChanged}
onSelectedStyleChanged={() => this.onSelectedStyleChanged}
value={this.state.value}
style={{ backgroundColor : '#fff'}}
styleList={defaultStyles}
onValueChanged={() => this.onValueChanged}
/>

@hussainhspl
Copy link

use this code
<CNRichTextEditor
ref={input => this.editor = input}
onSelectedTagChanged={() => this.onSelectedTagChanged}
onSelectedStyleChanged={() => this.onSelectedStyleChanged}
value={this.state.value}
style={{ backgroundColor : '#fff'}}
styleList={defaultStyles}
onValueChanged={() => this.onValueChanged}
/>

making fat arrow function will solve the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants