Skip to content

fix(shared): auto-focus comment editor when opened on mobile#5492

Merged
idoshamun merged 1 commit intomainfrom
eng-713-when-opening-the-comment-box-in-mobile-it-should-be-auto
Feb 15, 2026
Merged

fix(shared): auto-focus comment editor when opened on mobile#5492
idoshamun merged 1 commit intomainfrom
eng-713-when-opening-the-comment-box-in-mobile-it-should-be-auto

Conversation

@idoshamun
Copy link
Member

@idoshamun idoshamun commented Feb 15, 2026

Summary

  • Auto-focus the rich text comment editor when the editor instance initializes.
  • Ensure mobile comment box focus is not gated by inputRef.current, which can lag behind editor readiness.

Key decisions

  • Keep focus logic in the existing editor-dependent effect to target the exact initialization timing.
  • Use editor.commands.focus('end') directly to place the caret at the end consistently.

Issue: https://linear.app/dailydev/issue/ENG-713/when-opening-the-comment-box-in-mobile-it-should-be-auto-focused

Closes ENG-713


Created by Huginn 🐦‍⬛

Preview domain

https://eng-713-when-opening-the-comment.preview.app.daily.dev

@vercel
Copy link

vercel bot commented Feb 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
daily-webapp Ready Ready Preview Feb 15, 2026 8:00pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
storybook Ignored Ignored Feb 15, 2026 8:00pm

Request Review

@idoshamun idoshamun merged commit bd35bce into main Feb 15, 2026
11 checks passed
@idoshamun idoshamun deleted the eng-713-when-opening-the-comment-box-in-mobile-it-should-be-auto branch February 15, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant