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

[Mobile] Fix insert list block focus #15698

Merged

Conversation

etoledom
Copy link
Contributor

@etoledom etoledom commented May 17, 2019

This PR fixes a regression introduced by #15685 where inserting a new list block, that block was not automatically focused.

gutenberg-mobile side PR: wordpress-mobile/gutenberg-mobile#994

To test:

Removing it generates a regression where inserting a new list block, the block is not selected
@etoledom etoledom added the Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change) label May 17, 2019
@etoledom etoledom self-assigned this May 17, 2019
@etoledom etoledom marked this pull request as ready for review May 17, 2019 10:36
@etoledom etoledom merged commit 0e05d0c into rnmobile/release-v1.5.0 May 17, 2019
@etoledom
Copy link
Contributor Author

Thank you!

@etoledom etoledom deleted the rnmobile/fix-insert-list-block-focus branch May 17, 2019 11:22
koke added a commit that referenced this pull request May 20, 2019
* Fix rich image caption toolbar and focus (#15685)

* RichText: ownProps has precedence over block context.
In this way, instances of RichText outside blocks can pass and handle their own custom onFocus and isSelected

* RichText: Remove isSelected from block edit context.

* Fix lint issues

* RichText: Revert removing isSelected from block context (#15698)

Removing it generates a regression where inserting a new list block, the block is not selected
hypest added a commit that referenced this pull request May 20, 2019
* Fix rich image caption toolbar and focus (#15685)

* RichText: ownProps has precedence over block context.
In this way, instances of RichText outside blocks can pass and handle their own custom onFocus and isSelected

* RichText: Remove isSelected from block edit context.

* Fix lint issues

* RichText: Revert removing isSelected from block context (#15698)

Removing it generates a regression where inserting a new list block, the block is not selected

* Don't have AztecAndroid set caret if out-of-bounds

* Fix lint issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mobile App - i.e. Android or iOS Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants