Skip to content

Add auto-focus for Long Text fields in Flow mode and update changelog - #34

Merged
QUBITABHAY merged 1 commit into
mainfrom
development
Mar 24, 2026
Merged

QUBITABHAY merged 1 commit into
mainfrom
development

Conversation

@QUBITABHAY

Copy link
Copy Markdown
Owner

This pull request addresses a bug where the "Long Text" (textarea) fields in Flow mode were not auto-focused as expected. The fix ensures that when navigating to a "Long Text" field, the textarea receives focus automatically, improving the user experience. The main changes involve updating the TextArea component to support the autoFocus prop and refining the focus logic in the FlowPage layout.

Long Text Auto-Focus Fix:

  • Added an autoFocus prop to the TextArea component and passed it through to the underlying <textarea> element, enabling programmatic focus control.
  • Updated the FlowPage layout to:
    • Extend the list of focusable field types to include "textarea", so that "Long Text" fields are auto-focused when active.
    • Allow the shared inputRef to reference either an HTMLInputElement or an HTMLTextAreaElement, supporting both short and long text fields.
    • Properly cast the ref when rendering InputField and TextArea components.

Documentation:

  • Added a changelog entry describing the long text auto-focus fix for Flow mode.

@vercel

vercel Bot commented Mar 24, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
formify Ready Ready Preview, Comment Mar 27, 2026 6:57pm

@QUBITABHAY
QUBITABHAY merged commit adb2a7a into main Mar 24, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 56088361 Deployed Mar 23, 2026 by vercel[bot]
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