Files
orca/mobile/src/platform
Brennan Benson a1d30fbd77 fix(mobile): keep the keyboard open when a tab tap opens its details card (#36866)
* fix(mobile): keep the keyboard open when a tab tap opens its details card

Tracked in STA-13199.

* fix(mobile): keep the keyboard open when the session title opens its details card

The session title opens the same details card as a tab, but sat outside every
keep-focus container, so its tap moved focus off a focused composer or terminal
input and closed the soft keyboard. Attach the existing keep-focus helper to the
title button so the tap leaves the field focused, as tab taps already do.

* fix(mobile): keep the keep-focus helper safe where there is no DOM

The session title now attaches the keep-focus helper, and the title renders in
renderers without a DOM, where checking against HTMLElement throws. Check that
HTMLElement exists first, as other mobile code already does.

* test(mobile): use a type-only namespace import for the react-native mock type
2026-11-01 19:22:42 -08:00
..