feat: Add ref API to Composer for programmatic send box focus by marclundgren · Pull Request #5607 · microsoft/BotFramework-WebChat · GitHub
Skip to content

feat: Add ref API to Composer for programmatic send box focus#5607

Open
marclundgren wants to merge 2 commits into
microsoft:mainfrom
marclundgren:feature/composer-ref-focus-api-clean
Open

feat: Add ref API to Composer for programmatic send box focus#5607
marclundgren wants to merge 2 commits into
microsoft:mainfrom
marclundgren:feature/composer-ref-focus-api-clean

Conversation

@marclundgren

Copy link
Copy Markdown
Contributor
  • Add forwardRef wrapper to Composer component
  • Expose focusSendBoxInput() method via ComposerRef
  • Export ComposerRef type for TypeScript consumers
  • Leverages existing useFocus('sendBox') infrastructure
  • Returns Promise for async focus handling

Fixes #

Changelog Entry

Description

Design

Specific Changes

-

  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@marclundgren

Copy link
Copy Markdown
Contributor Author

- Add forwardRef wrapper to Composer component
- Expose focusSendBoxInput() method via ComposerRef
- Export ComposerRef type for TypeScript consumers
- Leverages existing useFocus('sendBox') infrastructure
- Returns Promise for async focus handling
@marclundgren marclundgren force-pushed the feature/composer-ref-focus-api-clean branch from b41436c to 33189fc Compare October 1, 2025 21:19
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.

2 participants