microsoft / microsoft/AdaptiveCards
[iOS][Teams] Input.ChoiceSet initial value is not set when style is filtered
Nobody has claimed this yet.
- 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:
style is filtered && dynamic search:
Web
style is filtered && static search:
style is filtered && dynamic search:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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