microsoft / microsoft/AdaptiveCards

[iOS][Teams] Input.ChoiceSet initial value is not set when style is filtered

Open
#8,821 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Schema Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Application

Microsoft Teams

Application Operating System

iOS

Schema Version

1.5

Scopes

Personal Chat

Problem Description

The initial value of Input.ChoiceSet is not set when style is filtered.
Interestingly, it works fine when style is compact or expanded, or the people-picker is also fine.

These bugs do not occur on Android and Web.

Expected Outcome

iOS should be set the initial value of Input.ChoiceSet when style is filtered and both static search and dynamic search.

Actual Outcome

The initial value is not set only iOS.

iOS

iOS: 17.3
Teams version: 5.23.0
Teams build: 5.23.77.2023235003/0109 (general)

style is filtered && static search:
Xnip2024-02-09_15-33-10

style is filtered && dynamic search:
Xnip2024-02-09_15-33-10

Web

style is filtered && static search:
Xnip2024-02-09_15-30-19

style is filtered && dynamic search:
Xnip2024-02-09_15-30-19

Card JSON
style is filtered && static search
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "Input.ChoiceSet",
      "id": "choiceselect",
      "style": "filtered",
      "label": "Input.ChoiceSet",
      "placeholder": "Search for a IDE",
      "value": "visual_studio",
      "choices": [
        {
          "title": "Visual studio",
          "value": "visual_studio"
        },
        {
          "title": "IntelliJ IDEA ",
          "value": "intelliJ_IDEA "
        }
      ]
    }
  ]
}
style is filtered && dynamic search
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.5",
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "Input.ChoiceSet",
      "id": "choiceselect",
      "style": "filtered",
      "label": "Input.ChoiceSet",
      "placeholder": "Search for a IDE",
      "value": "visual_studio",
      "choices": [
        {
          "title": "Visual studio",
          "value": "visual_studio"
        },
        {
          "title": "IntelliJ IDEA ",
          "value": "intelliJ_IDEA "
        }
      ],
      "choices.data": {
        "type": "Data.Query",
        "dataset": "searchIde"
      }
    }
  ]
}
Repro Steps

No response

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 supplied Adaptive Card JSON on iOS, testing filtered style with both static and dynamic search and comparing compact, expanded, Android, and Web behavior. Done means the initial value visual_studio is set consistently for filtered Input.ChoiceSet on iOS in both search modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.