microsoft / microsoft/AdaptiveCards

[Rendering] Default choices aren't selected when rendering multiple Input.choiceSet

Open
#9,096 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Target Platforms

UWP, Other

SDK Version

1.2.3 AdaptiveCards.ObjectModel & 3.2.5 AdaptiveCards.Rendering

Application Name

Windows Widgets

Problem Description

Repros on UWP and WinUI3.

When there are 2 Input.choiceSet elements present for example, the 2nd one gets its default choice set correctly but the 1st one does not.

Screenshots

Image

Card JSON
{
	"type": "AdaptiveCard",
	"version": "1.3",
	"body": [
		{
			"type": "Input.ChoiceSet",
			"id": "input1",
			"value": "2",
			"style": "expanded",
			"label": "First Choiceset",
			"isMultiSelect": false,
			"choices": [
				{
					"title": "Choice A",
					"value": "1"
				},
				{
					"title": "Choice B",
					"value": "2"
				}
			]
		},
		{
			"type": "Input.ChoiceSet",
			"id": "input2",
			"value": "3",
			"style": "expanded",
			"label": "Second Choiceset",
			"isMultiSelect": false,
			"choices": [
				{
					"title": "Choice C",
					"value": "3"
				},
				{
					"title": "Choice D",
					"value": "4"
				}
			]
		}
	]
}
Sample Code Language

No response

Sample Code

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 provided card JSON on UWP or WinUI3, focusing on the two expanded Input.ChoiceSet elements and their default values. Trace the ChoiceSet rendering path to determine why only the second default is selected. Done means both input1 and input2 display their specified default choices.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.