-
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
Move selection to end of link after insertion. #22652
Conversation
Make sure the selection is refreshed after changed.
Size Change: 0 B Total Size: 1.12 MB ℹ️ View Unchanged
|
Hey @SergioEstevao haven't tested it myself yet but I see a test is failing – not sure if flaky tests so I reran the tests so we can check back tomorrow. |
I'm holding off testing because of the bug that @Tug reported here. |
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.
Working great, tested here: wordpress-mobile/gutenberg-mobile#2323 (review)
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.
👍
Make sure the selection is refreshed after changed.
* Remove Keyboard.dismiss() when deleting block * Move selection to end of link after insertion. (#22652) Make sure the selection is refreshed after changed. * Only show pullquote block on iOS. * Allow pullquote block to show on Android Dev builds * Change indentifier type in Button, correct concatenation in merge function (#22708) * [RNMobile] Fix footer appender in buttons block (#22711) * add renderFooterAppender to the extraData to re-render list * small refactor * Add onDeleteBlock to the extra data to re-render when it has changes (#22716) * add renderFooterAppender to the extraData to re-render list * small refactor * Add onDeleteBlock to the extra data to re-render when it has changes * add renderFooterAppender to the extraData to re-render list * small refactor * Add onDeleteBlock to the extra data to re-render when it has changes * [RNMobile] Correct color selection in color settings (#22736) * [RNMobile] Fix: Add default value to format when start and end are undefined (#22741) * add default vale to format when start and end are undefined * revert lint changes * Fix lint issue Co-authored-by: lukewalczak <[email protected]> Co-authored-by: Sérgio Estêvão <[email protected]> Co-authored-by: Drapich Piotr <[email protected]>
Description
This PR updates the caret position to be at the end of the link, after insertion or change. This follows the same approach that was implemented on the web here: #17126
It also fixes the issue described here: wordpress-mobile/gutenberg-mobile#2319
How has this been tested?
This can be tested using the PR on GB-Mobile here: wordpress-mobile/gutenberg-mobile#2323
Screenshots
Types of changes
Bugfix and enhancement.
Checklist: