microsoft / microsoft/AdaptiveCards

[Rendering] UWP ChoiceSet - validation error and choice is opened automatically when submitting with error

Open
#6,547 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Target Platforms

UWP

SDK Version

n/a

Application Name

AdaptiveCardVisualizer

Problem Description

Load v1.5\Elements\Input.ChoiceSet.Filtered.json

two problems:

  1. warning messages: Invalid value type on Input.ChoiceSet.style. Expected Null but got String. and Invalid value type on Input.ChoiceSet.value. Expected Number but got String.
  2. when clicking submit but with error, expect:

image
but it actually opened the popup
image

Screenshots

image

Card JSON

see https://github.com/microsoft/AdaptiveCards/blob/main/samples/v1.5/Elements/Input.ChoiceSet.Filtered.json

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 loading samples/v1.5/Elements/Input.ChoiceSet.Filtered.json in AdaptiveCardVisualizer on UWP and reproduce both reported problems. Trace the ChoiceSet rendering and submission-validation path. Done means the sample no longer reports the style and value warnings, and submitting with a validation error does not open the choice popup.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
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.