Skip to content

[#1670][Dialogs] Remove hardcoded InputHint for AttachmentPrompt #1671

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

Conversation

denscollo
Copy link
Contributor

#minor -> replace for fixes x when promoted
Fixes #1670

Description

This PR fixes the issue with the attachment prompt forcing the Input Hint on prompt and adds a new unit test to validate the change.

Specific Changes

  • Remove lines in attachment_prompt.py that force the input_hint.
  • Add unit test test_attachment_prompt_with_input_hint that uses an activity with the input hint set, and validates that when used the properties are not changed.

Testing

Below is the added unit test working before and after the change is applied.
image

And below is the 05.multi-turn botbuilder sample using the library with the changes applied.
image

@tracyboehrer
Copy link
Member

@denscollo or @santgr11 Can you update from main again and I'll get this merged.

@tracyboehrer tracyboehrer merged commit 3612c05 into microsoft:main Jun 15, 2021
@ceciliaavila ceciliaavila deleted the southworks/fix/attachment-prompt-input-hint branch June 15, 2021 20:54
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.

[Dialogs] InputHint is hardcoded for AttachmentPrompt as expecting_input
4 participants