Skip to content

[UWP][Visualizer][Show Cards] Nested show cards don't work properly in popup mode #4368

@RebeccaAnne

Description

@RebeccaAnne

Platform

What platform is your issue or question related to? (Delete other platforms).

  • UWP

Version of SDK

main

Details

Found while investigating #4245, but repros in main and is therefore not a regression from the input work.

Using the below card, and setting the host config to popup mode, the nested show cards do not work. The first card is shown in a popup, but when the Action.ShowCard button is pressed in the popup, nothing happens.

Because showing the rendered popup show cards is actually the responsibility of the host, in this case the visualizer, this is probably actually a visualizer bug rather than a renderer bug.

Inline Show Card Popup Show Card
image image
{
    "type": "AdaptiveCard",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "text": "Main Card"
        }
    ],
    "actions": [
        {
            "type": "Action.ShowCard",
            "title": "Action.ShowCard",
            "card": {
                "type": "AdaptiveCard",
                "body": [
                    {
                        "type": "TextBlock",
                        "text": "First Show Card"
                    }
                ],
                "actions": [
                    {
                        "type": "Action.ShowCard",
                        "title": "Action.ShowCard",
                        "card": {
                            "type": "AdaptiveCard",
                            "body": [
                                {
                                    "type": "TextBlock",
                                    "text": "Second show card"
                                }
                            ]
                        }
                    }
                ]
            }
        }
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions