fix(composer): keep the mobile caret aligned when command mode toggles

The composer frame used transition-all, so entering or leaving command/mention mode animated its border, ring and shadow. While that transition ran iOS Safari painted the textarea caret in the wrong place and left it there, dropping the caret below the typed text once the command list closed. Drop the transition so the frame changes in a single frame.
This commit is contained in:
Chris Scott committed 2026-10-07 21:37:10 -04:00
1 parent 15749ff737
commit db08aca1c7
1 file changed
+1 -1
@@ -1472,7 +1472,7 @@ if (isIOS && isSecureContext && navigator.clipboard && navigator.clipboard.read)
return (
<div className={`relative backdrop-blur-md bg-background opacity-95 border border-border dark:border-border/30 rounded-xl p-2 md:p-3 mb-4 md:mb-1 w-full transition-all ${hasPendingPermissionForSession ? 'border-highlight/50 ring-1 ring-highlight/30' : composerModeStyle?.frame ?? ''} ${isTakeoverOpen ? 'z-[60]' : ''}`}>
<div className={`relative backdrop-blur-md bg-background opacity-95 border border-border dark:border-border/30 rounded-xl p-2 md:p-3 mb-4 md:mb-1 w-full ${hasPendingPermissionForSession ? 'border-highlight/50 ring-1 ring-highlight/30' : composerModeStyle?.frame ?? ''} ${isTakeoverOpen ? 'z-[60]' : ''}`}>
{composerModeStyle && (
<span
data-testid="composer-mode-badge"