-
Notifications
You must be signed in to change notification settings - Fork 4.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
[FIX] rich text focus loop #19240
Merged
Merged
[FIX] rich text focus loop #19240
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dratwas
changed the title
check if onBlur event contains text that is different than value
[FIX] rich text focus loop
Dec 19, 2019
2 tasks
dratwas
force-pushed
the
fix/rich-text-loop
branch
from
December 20, 2019 10:27
e8e4afb
to
0856422
Compare
…esult of resigning focus
pinarol
approved these changes
Dec 20, 2019
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!
Tested with steps here on both WPAndroid and WPiOS.
6 tasks
Tug
added a commit
that referenced
this pull request
Jan 10, 2020
* styling fixes after navigation feature merge (#19455) * Styling fixes to navigation feature * Add netural styles for toolbar * Fix condition for not registered component * Display 'Unsupported' in breadcrumbs for missing components * Refactor after CR * Remove leftovers * [FIX] rich text focus loop (#19240) * check if onBlur event contains text that is different than value * add check if there is a text in native event * Prevent re-selection of RichText when native selection changes as a result of resigning focus * Fix typo * Check if isSelected only in onSelectionChangeFromAztec Co-authored-by: Jorge Bernal <jbernal@gmail.com> * [RNMobile] Correct displaying photo during upload (#19502) * [RNMobile] Fix crash once adding Group (#19457) * Add extra branch for travis to run tests onto Co-authored-by: Luke Walczak <lukasz.walczak.pwr@gmail.com> Co-authored-by: Drapich Piotr <drapich.piotr@gmail.com> Co-authored-by: Jorge Bernal <jbernal@gmail.com>
This was referenced Jan 10, 2020
Tug
added a commit
that referenced
this pull request
Jan 14, 2020
…9569) * [RNMobile] Merge mobile release v1.20.0 back into master (#19562) * styling fixes after navigation feature merge (#19455) * Styling fixes to navigation feature * Add netural styles for toolbar * Fix condition for not registered component * Display 'Unsupported' in breadcrumbs for missing components * Refactor after CR * Remove leftovers * [FIX] rich text focus loop (#19240) * check if onBlur event contains text that is different than value * add check if there is a text in native event * Prevent re-selection of RichText when native selection changes as a result of resigning focus * Fix typo * Check if isSelected only in onSelectionChangeFromAztec Co-authored-by: Jorge Bernal <jbernal@gmail.com> * [RNMobile] Correct displaying photo during upload (#19502) * [RNMobile] Fix crash once adding Group (#19457) * Add extra branch for travis to run tests onto Co-authored-by: Luke Walczak <lukasz.walczak.pwr@gmail.com> Co-authored-by: Drapich Piotr <drapich.piotr@gmail.com> Co-authored-by: Jorge Bernal <jbernal@gmail.com> * Revert travis changes Co-authored-by: Luke Walczak <lukasz.walczak.pwr@gmail.com> Co-authored-by: Drapich Piotr <drapich.piotr@gmail.com> Co-authored-by: Jorge Bernal <jbernal@gmail.com>
hypest
added a commit
that referenced
this pull request
Feb 11, 2020
* [RNMobile] Merge mobile release v1.20.0 back into master (#19562) * styling fixes after navigation feature merge (#19455) * Styling fixes to navigation feature * Add netural styles for toolbar * Fix condition for not registered component * Display 'Unsupported' in breadcrumbs for missing components * Refactor after CR * Remove leftovers * [FIX] rich text focus loop (#19240) * check if onBlur event contains text that is different than value * add check if there is a text in native event * Prevent re-selection of RichText when native selection changes as a result of resigning focus * Fix typo * Check if isSelected only in onSelectionChangeFromAztec Co-authored-by: Jorge Bernal <jbernal@gmail.com> * [RNMobile] Correct displaying photo during upload (#19502) * [RNMobile] Fix crash once adding Group (#19457) * Add extra branch for travis to run tests onto Co-authored-by: Luke Walczak <lukasz.walczak.pwr@gmail.com> Co-authored-by: Drapich Piotr <drapich.piotr@gmail.com> Co-authored-by: Jorge Bernal <jbernal@gmail.com> * Adding empty function to RichText children call. (#19818) This fixes a crash originated on this PR: #19536 ` * Disable gallery image size options on mobile (#19828) * [Mobile] Fix blank image size labels on mobile (#19800) (#20045) * Fix blank image size labels on mobile * Use name instead of label in default imageSizes * [RNMobile] Enable Dismiss on PlainText in Android (#20095) * Add flag for determining if running on Android * Enable Dismiss button on PlainText. Enable show keyboard in Android on PlainText mount * Enable Dismiss button on PlainText. Enable show keyboard in Android on PlainText mount Co-authored-by: Tugdual de Kerviler <dekervit@gmail.com> Co-authored-by: Luke Walczak <lukasz.walczak.pwr@gmail.com> Co-authored-by: Drapich Piotr <drapich.piotr@gmail.com> Co-authored-by: Jorge Bernal <jbernal@gmail.com> Co-authored-by: etoledom <etoledom@icloud.com> Co-authored-by: Matthew Kevins <mkevins@users.noreply.github.com> Co-authored-by: Chip <chip.snyder3@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR contains also changes from #19234
Gutenberg-mobile PR - wordpress-mobile/gutenberg-mobile#1702
This is an only iOS issue. Aztec doesn't trigger the
onChange
event with the new value when lost its focus while the suggestion is visible. We see the text from autocorrection but we have te written value in the store. The workaround for this is to pass text to theonBlur
and update the value on the JS side if that one from onBlur is different.How has this been tested?
Tested with the steps in wordpress-mobile/gutenberg-mobile#1696
Please try 2 different scenarios:
Checklist: