microsoft / microsoft/BotFramework-WebChat

Values disappear in disabled ChoiceSet in Firefox

Open
#5,481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bot Services bug customer-reported
Dominant language
HTML
Stars
1.8k
Forks
1.6k
Avg merge
22h 58m
Merged PRs (30d)
2

Description

Is it an issue related to Adaptive Cards?

Yes, this is an Adaptive Card issue, however it only repro on Web Chat.

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

NPM

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

Browser: Firefox (latest)

Which area does this issue affect?

Attachment: Adaptive Card

Which theme pack does this issue affect?

I did not test it on other theme packs

Please describe the bug

The choiceSet value disapears on firefox when disabling a card.

Do you see any errors in console log?
No
How to reproduce the issue?
  • use The adaptiveCard below in the webchat
  • disable the adaptiveCard in the code after recentBotMessages have been sent
  • Open Webchat in Firefox
  • Select a value in the ChoiceSet
  • submit the card
What do you expect?

The selected input should still be visible

What actually happened?

The selected value disappear. Here an example with another ChoiceSet:

Image

Adaptive Card JSON
{
    "type": "AdaptiveCard",
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.5",
    "body": [
        {
            "type": "Input.ChoiceSet",
            "label": "New Input.ChoiceSet",
            "choices": [
                {
                    "title": "Choice 1",
                    "value": "value1"
                },
                {
                    "title": "Choice 2a",
                    "value": "value2"
                },
                {
                    "title": "Choice 3",
                    "value": "value3"
                }
            ],
            "placeholder": "Placeholder text"
        }
    ]
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in Web Chat with the Adaptive Card JSON in Firefox: select a ChoiceSet value, submit the card, then disable it after recent bot messages have been sent. Trace the affected Adaptive Card attachment behavior and verify that the selected input remains visible after disabling the card.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.