microsoft / microsoft/AdaptiveCards
[Rendering][iOS] Default value of the Input.ChoiceSet not taken into account
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
Target Platforms
iOS
SDK Version
1.5
Application Name
Microsoft Teams
Problem Description
When using Input.ChoiceSet with Expanded style, and setting a Default value with the "value" field, it renders correctly and gets ticked on Teams native app, all the browser and on Android. On iOS it does not render as expected, i.e. the default value is not pre-selected.
Screenshots
Actual image sample:
JSON sample provides simplified adaptive card.
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 2",
"value": "value2"
},
{
"title": "Test"
}
],
"placeholder": "Placeholder text",
"style": "expanded",
"value": "Test"
}
]
}
Sample Code Language
No response
Sample Code
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 with the provided Adaptive Card JSON and trace the iOS rendering path for the expanded Input.ChoiceSet. Compare its default-value handling with the browser and Android behavior described in the issue. Done means the choice matching the value field is pre-selected on iOS.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100