Gallery and Audio block caption fields have a persistent focus
Feedback from @dcalhoun testing:
The Gallery block keeps the caption focus in certain scenarios:
- Add a Gallery block.
- Add a few images.
- Tap the floating “navigate up” button.
- Note the caption field is not focused.
- Tap the caption field.
- Tap an individual image.
- Tap the floating “navigate up” button.
- Note the caption field is focused.
This focus regain actually persists across Gallery blocks. If you select a completely different block, the caption will continue to regains focus whenever you return to selecting the Gallery and navigate up. It’s as if the focus state of the caption input is cached somewhere.
This is happening in the current production app so it is not a regression from the recent design updates. Let's have this issue to work on it later on.
Updated this issue to include the Audio block as it occurs there too. It puts the Audio block into a state where one cannot change the media file attached to the block, as one cannot blur the captain field to select the parent block itself.
Screen recording
https://github.com/wordpress-mobile/gutenberg-mobile/assets/438664/a5ff2523-4a4b-47cc-9d8e-15538c2e61a7
| Caption Blurred | Caption Focus |
|---|---|