Skip to content

[Rendering] CodeBlock in Action.Popover on Mobile does not work #9360

@OZOOOOOH

Description

@OZOOOOOH

Target Platforms

iOS, Android

SDK Version

1.5

Application Name

Microsoft Teams

Problem Description

It is rendered well in PC Ms Teams, but when i click the Popover button in iOS and Android, the Teams app is shutdown

Screenshots

No response

Card JSON

{
  "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.5",
  "msTeams": {
    "width": "full"
  },
  "body": [
    {
      "type": "Container",
      "style": "default",
      "spacing": "Medium",
      "separator": true,
      "items": [
        {
          "type": "ActionSet",
          "spacing": "Small",
          "actions": [
            {
              "type": "Action.Popover",
              "title": "Stack Trace",
              "content": {
                "type": "Container",
                "style": "attention",
                "items": [
                  {
                    "type": "TextBlock",
                    "text": "📋 Stack Trace",
                    "weight": "Bolder",
                    "size": "Medium",
                    "color": "Accent",
                    "wrap": true
                  },
                  {
                    "type": "CodeBlock",
                    "language": "Python",
                    "codeSnippet": "File: jdbc_connector.py:245\n  connection = create_connection(host, port)\nTimeoutError: Connection timeout after 30 seconds"
                  }
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}

Sample Code Language

No response

Sample Code

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions