Skip to content
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

[Teams Client] Adaptive Card: Input.ChoiceSet: Selection jumps back to default value after action.execute #11482

Open
dooriya opened this issue Aug 17, 2024 · 3 comments
Assignees
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@dooriya
Copy link
Contributor

dooriya commented Aug 17, 2024

Steps to reproduce

Copied the issue from OfficeDev/teams-toolkit#12217
Describe the bug
We have just published a new app to Microsoft Teams store. The app utilizes message extension feature and a bot from teams toolkit example. You can reproduce the issue with our app: https://tinyurl.com/teams-issue-example-app . The link will expire automatically on 31th August 2024. Please do not share any screenshots of our app due to privacy. Thanks!

An adaptive card with Input.ChoiceSet element and a (preselected) value is shown to the user. The user selects another value and performs the action.execute element.

The correct value (new) value is provided to the bot, but the wrong (old, preselected value) is shown again to the user. Even though the correct value is provided to the bot, this issue can cause a lot of confusion to the user and should be corrected.

To Reproduce

  1. Create an adaptive card with input.choiceset and default value (e.g. with our app):

image

  1. Select another value:

image

  1. Hit Submit

image

CLI Information (please complete the following information):

  • Teams Web (Edge)
  • Teams Desktop (Windows 10)

Expected behavior

Please provide the new value to the bot and also keep the new value selected in the UI while the action.execute is processed.

Actual behavior

Although the correct (new) value is provided to the bot, the UI will show the old value for a brief moment.

Error details

No response

Copy link
Contributor

Hi dooriya! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

@jker-org
Copy link

jker-org commented Aug 17, 2024

The additional comment from @dooriya in the original post shows the problem even better:

  • Preselection is Red. User selects Blue and submits.
  • UI jumps back to old, preselected value (Red) while processing.
  • After bot responds, cards shows the correct (new) value (Blue) again.
  • This will confuse the user: Which value was really provided?
  • Expected behavior: After submit, UI should stick with the new value.

For example, in my test app (default: "red", user selected: "blue"):

action_execute

Originally posted by @dooriya in OfficeDev/teams-toolkit#12217 (comment)

@Nivedipa-MSFT
Copy link

Nivedipa-MSFT commented Aug 19, 2024

@dooriya - Thanks for reporting your issue. We have tested this on Teams web platform. We are able to repro your issue. We have raised a bug for the same. We will let you know once we get any updates on it.

@ChetanSharma-msft ChetanSharma-msft added the teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

5 participants