-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use setTimeout hack to get paste context back #1449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
actually, this is going to update the whole view twice because we have two |
@estebanmino I didn't, but I will try that and if it works I will update the PR :) |
@estebanmino yep, that worked! Just updated :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, QA Passed 👍
Super weird workaround that I found here: facebook/react-native#23653 (comment)
* Use setTimeout hack to get paste context back Super weird workaround that I found here: facebook/react-native#23653 (comment) * Move everything into a single setState call
super weird workaround that I found here: facebook/react-native#23653 (comment). that issue is for
multiline
, but it appears to work here none the less.looking at the existing code a little bit more closely and I see a link to this: facebook/react-native#9958. (@estebanmino it appears we ran into the same problem before?) if you look at the hack outlined, they actually used a
setTimeout
... It doesn't seem to work unless the width is reset a little later.Before (paste context does not appear on Rinkeby):
After:
Checklist
Issue
Resolves #1442