Skip to content

[UWP] Visualizer crashes with erroneous values on Input.Date #3174

Description

@choupete

Platform

  • UWP

Issue

The UWP visualizer crashes when the JSON has faulty min and max values on Input.Date (when max comes before min). The visualizer initially renders the card, but when clicking the button to expand the date picker, the application crashes.

{
    "type": "AdaptiveCard",
    "version": "1.0",
    "body": [
        {
            "type": "Input.Date",
            "title": "New Input.Toggle",
            "id": "asdf",
            "min": "2017-08-01",
            "max": "2017-07-08"
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}

Result:

image
Clicking the calendar icon will cause a crash.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions