Skip to content

Conversation

@koke
Copy link
Member

@koke koke commented Nov 29, 2018

This combines WordPress/gutenberg#12422 and wordpress-mobile/react-native-aztec#85

When a RichText becomes selected, it will call focus on the aztec view to ensure it gets the right focus. The focus was working OK when tapping, but this fixes the cases where the block focus changes programatically, like inserting a new paragraph or splitting a block.

To test:

  • Insert a new paragraph, verify it has focus
  • Type some words, press return, verify the new block has focus

@koke
Copy link
Member Author

koke commented Nov 29, 2018

@mzorz since you probably have a better idea of the current issues, feel free to add any this PR fixes to the description

@mzorz
Copy link
Contributor

mzorz commented Nov 29, 2018

Nothing much to add 😄 the code is quite simple to read and you got things right.
This WordPress/gutenberg#12422 also fixes a similar problem I saw on Android (breaking focus when enter was pressed and a new block was inserted) 👍

Copy link
Contributor

@mzorz mzorz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - let's update the Gutenberg hash here once WordPress/gutenberg#12422 lands

…g-mobile into issue/rich-text-focus-on-selection

* 'master' of https://github.com/wordpress-mobile/gutenberg-mobile:
  Update GB ref to point to master
  Create blocks empty by default
  Update GB hash
@daniloercoli daniloercoli merged commit 142b1d1 into master Nov 30, 2018
@daniloercoli daniloercoli deleted the issue/rich-text-focus-on-selection branch November 30, 2018 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants