Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mink-ms opened this issue Jan 23, 2025 · 1 comment

Comments

@mink-ms
Copy link

mink-ms commented Jan 23, 2025

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

@mink-ms
Copy link
Author

mink-ms commented Jan 28, 2025

issue repros with "expanded" style choice sets in particular. Multiple "compact"s and 1 "expanded" does not repro.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant