-
Notifications
You must be signed in to change notification settings - Fork 1.6k
add focusSendBoxInput method #5512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ut method; update type exports for ComposerRef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally I'd approve this, but I know William is very specific about the format of the changelog; fix that and I'll re-approve.
CHANGELOG.md
Outdated
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. | |||
### Added | |||
|
|||
- Resolves [#5081](https://github.com/microsoft/BotFramework-WebChat/issues/5081). Added `uploadAccept` and `uploadMultiple` style options, by [@ms-jb](https://github.com/ms-jb) | |||
- Added `ComposerRef` type and ref-based focus control to `Composer` component, enabling programmatic focus of the send box input via `focusSendBoxInput()` method |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should follow one of the changelog line templates above (e.g. link to an issue or your GH page)
9065b3c
to
0f478d8
Compare
Hi @beyackle2! 👋 I've updated the CHANGELOG.md entry to follow the proper format. The entry now includes:
The updated entry matches the format used by other entries in the changelog. The change has been committed and pushed. Thanks for the feedback! 🙏 |
How about moving composer upper in the tree and utilizing existing The use-case seems can be solved in userland without the proposed modification. |
Add ref-based focus control to Composer component to enable focus send box
Summary
This PR adds a ref prop to the Composer component that exposes a focusSendBoxInput() method, allowing parent components to programmatically focus the chat input field.
Changes
Usage Example
CHANGELOG.md
Review Checklist
z-index
)package.json
andpackage-lock.json
reviewed