Gutenberg-mobile: Inserter - cursor not following along focus when inserting a new block

Created on 14 Aug 2018  路  3Comments  路  Source: wordpress-mobile/gutenberg-mobile

Coming from https://github.com/wordpress-mobile/gutenberg-mobile/pull/105#pullrequestreview-145980349

If I'm editing a text block and I add another, the "focus" switches to the newly inserted block, but the cursor stays in the previous block. I'm not sure if we're worrying about that at this point, but leaving a note here.

~ToDo:~

  • [x] ~#237 handle focus on RichText-based blocks~
  • [x] ~#250 handle focus on other blocks~

EDIT:
ToDo:

Recreating the ToDo list here after migration to FlatList

  • [x] #270 handle focus on RichText-based blocks
  • [x] #250 handle focus on PlainText-based blocks
[Type] Bug

All 3 comments

Hey @mzorz - I see this issue marked as closed, but testing master, when I try to insert a new block via the + button on the inserter, or tapping enter at the end of a block, it does insert the new block after, but both the cursor and the focus stay in the current block.

Should we re-open this, or is it tracked somewhere in the Inserter master thread?

Thanks for the heads up @daniloercoli - tested and verified this is the case. Reopening 馃槥

Confirming it works on InputText-based blocks with FlatList (Gutenberg's PlainText primitive)

Was this page helpful?
0 / 5 - 0 ratings