Ensure the message composer textarea scrolls into view during mobile keyboard interactions. - extract a reusable textarea scroll helper guarded for missing scrollIntoView support - subscribe to visualViewport resize for all compose modes (not only replies) and clean up listener with stable callback - trigger textarea scrolling on focus to proactively keep the composer visible when soft keyboards open - add tests covering visualViewport resize for new compose, existing reply flow, and focus-triggered scroll behavior Files changed: .../dashboard/app/components/MessageComposer.tsx | 20 ++++---- .../components/__tests__/MessageComposer.test.tsx | 56 ++++++++++++++++++++++ 2 files changed, 68 insertions(+), 8 deletions(-) Fusion-Task-Id: FN-5837 Fusion-Task-Lineage: c9fb76a2-6c5a-4d5c-b8ad-8250ed470825
9.9 KiB
9.9 KiB