-
Notifications
You must be signed in to change notification settings - Fork 57
[RichText]: when editable is focused, tapping on toolbar actions switches focus #292
Copy link
Copy link
Closed
Labels
Description
When a RichText component has the caret blinking and its block is selected, tapping on its toolbar actions do not work as expected - instead focus changes to next focusable item available.
To test:
- launch the demo app from scratch
- Tap on a RichText block: "Welcome to Gutenberg" (particularly, tap somewhere within the "Gutenberg" word, to leave space to avoid collision with up/down arrows next steps)
- observe the caret appears, the block gets selected, the keyboard appears and the editor toolbar reflects the Heading style
- try tapping on the DOWN arrow.
- observe the next block ("Hello World") gets the focus and is selected.
If you continue, the next available focusable items will get focused, for example:
- from the previous state left in step 5, try tapping on the DOWN arrow on this new block (Hello World).
- observe the next RichText block now gets the focus (jumping from Page Break block, to Lorem ipsum block).
What should happen?
- when a block gets selected, its inline toolbar actions should be actionable.
- if the block is editable, it should also show the keyboard and allow editing / moving caret / copy/paste, etc.
Where
Observed on a real device (Google Pixel 8.1)
Reactions are currently unavailable