Skip to content

[TS][Rendering] Column fallback broken #3600

@dclaux

Description

@dclaux

Platform

  • JavaScript

Author or host

Host

Version of SDK

1.2 (all builds)

Details

A regression was introduced in the logic of column fallback, and certain payloads fail to render, such as this one:

{
    "type": "AdaptiveCard",
    "body": [
        {
            "type": "ColumnSet",
            "columns": [
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "Graph"
                        }
                    ],
                    "fallback": {
                        "type": "Column",
                        "items": [
                            {
                                "type": "TextBlock",
                                "text": "Fallback"
                            }
                        ]
                    },
                    "width": "auto"
                },
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "Graph"
                        }
                    ],
                    "fallback": "drop",
                    "width": "stretch"
                },
                {
                    "type": "Column",
                    "items": [
                        {
                            "type": "TextBlock",
                            "text": "This is a column",
                            "wrap": true
                        }
                    ],
                    "width": "stretch"
                }
            ]
        }
    ],
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.0"
}

Metadata

Metadata

Assignees

Labels

BugPlatform-JavaScriptBugs or features related to the JavaScript renderer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions