microsoft / microsoft/AdaptiveCards
[Rendering] CodeBlock in Action.Popover on Mobile does not work
Open
Nobody has claimed this yet.
Area-Renderers
Bug
- Dominant language
- C#
- Stars
- 2k
- Forks
- 595
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied Adaptive Card in Microsoft Teams on iOS and Android, focusing on the CodeBlock nested inside Action.Popover. Compare the mobile behavior with the working PC rendering; done means opening the popover no longer shuts down Teams and the code block remains usable on both target platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, csharp, ios
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100