MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
285 stars 508 forks source link

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

Open kooooichi24 opened 8 months ago

kooooichi24 commented 8 months ago

Copied bug from: microsoft/AdaptiveCards#8821

Steps to reproduce

Hi Team,

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 behavior

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

Actual behavior

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: image

style is filtered && dynamic search: image

Web

style is filtered && static search: image

style is filtered && dynamic search: image

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"
      }
    }
  ]
}

Error details

No response

Page URL

https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/dynamic-search

Content source URL

https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/task-modules-and-cards/cards/dynamic-search.md

Author

Rajeshwari-v

Document Id

73843135-7d85-4829-a371-06e45cfa76ff

Dinesh-MSFT commented 8 months ago

Hi @kooooichi24 - Thanks for raising the query. We will look into it and let you know the updates.

Meghana-MSFT commented 7 months ago

We are also able to repro this issue. We raised a bug for the same, we will keep you posted on the updates.

jamjom commented 4 months ago

hi @Meghana-MSFT, I also encounter this issue on my app, are there any updates on this bug?

Meghana-MSFT commented 4 months ago

Hi @jamjom, Unfortunately, we do not have any updates to share. We are following up with engineering team for updates. We will keep you posted.