-
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
[Mobile] - RichText - Fix undefined
onDelete callback
#62486
Conversation
Size Change: 0 B Total Size: 1.76 MB ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
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.
Tests passed on both platforms. Thanks @geriux! 🚀
# Conflicts: # packages/react-native-editor/CHANGELOG.md
) * Native RichText - Fix undefined onDelete callback * Update changelog Co-authored-by: geriux <[email protected]> Co-authored-by: twstokes <[email protected]>
* Native RichText - Fix undefined onDelete callback * Update changelog Co-authored-by: geriux <[email protected]> Co-authored-by: twstokes <[email protected]>
* [Mobile] - Image corrector - Check the path extension is a valid one (#62190) * Mobile - Image corrector - Check the path extension is a valid one * [Mobile] - Image corrector- Expand comment explaining the filtering for file: media paths * Integration Test helpers - Expand pasteIntoRichText to support passing files as a parameter * Mobile Editor Tests - Add new tests related to pasting HTML content with local image paths * Update snapshot * [Mobile] - Unsupported block - UI improvements (#62240) * Mobile - Unsupported block editor - Update editor style overrides * Mobile - Unsupported block - Update UI to show Tap to edit for unsupported blocks, simplifying the flow to open the Unsupported block editor * Fix unsupported block condition * Update snapshot * Fix condition for the help icon * Update Unsupported Block Editor condition and reverts the functionality to select the block first before opening the editor. * Release script: Update react-native-editor version to 1.120.0 * Release script: Update CHANGELOG for version 1.120.0 * Release script: Update podfile * [Mobile] - RichText - Fix `undefined` onDelete callback (#62486) * Native RichText - Fix undefined onDelete callback * Update changelog Co-authored-by: geriux <[email protected]> Co-authored-by: twstokes <[email protected]> * Release script: Update react-native-editor version to 1.120.1 * Release script: Update podfile --------- Co-authored-by: geriux <[email protected]> Co-authored-by: twstokes <[email protected]>
Related PRs:
undefined
onDelete callback wordpress-mobile/gutenberg-mobile#6925What?
Fixes a crash when quickly deleting a Paragraph block and quickly focusing on a title and deleting it as well.
Why?
To prevent a crash in this case scenario when editing content.
How?
By adding a check for the
onDelete
callback in the RichText component.Testing Instructions
Note
Please use the following builds to test:
Testing Instructions for Keyboard
N/A
Screenshots or screencast
RichTextBefore.mov
RichTextAfter.mov