Inconsistency in show card collapse behavior
See original GitHub issueThere is an inconsistency between renderers as to what should happen when another non-showcard button in a action set is pressed when a show card is showing. In javascript, pressing any other button will collapse the shown show card. In UWP and .NET, only pressing another ShowCard button will collapse the shown show card.
JS | UWP/.NET |
---|---|
Repro card
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "My card"
},
{
"type": "TextBlock",
"text": "Content to toggle",
"id": "toggle1",
"isVisible": false
},
{
"type": "TextBlock",
"text": "Toggled content",
"id": "toggle2"
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.ShowCard",
"title": "Action.ShowCard",
"card": {
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "ShowCard contents",
"id": "hidey"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}
},
{
"type": "Action.ToggleVisibility",
"title": "Action.ToggleVisibility",
"targetElements": [
"toggle1",
"toggle2"
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Bootstrap Collapse Accordion Hover is not consistent
I'm working on creating a accordion that collapses/opens when the user hover's their mouse over the title of the accordion. The code I...
Read more >Inconsistent drop down button behaviour in work packages toolbar
Every button on the toolbar behaves slightly differently (in terms of presence of arrow, change of arrow direction and behaviour when button is...
Read more >12 Common CSS Browser Compatibility Issues To Avoid In ...
One of the unresolved issues has been visibility: collapse needs ... The card flip effect shows inconsistencies in three different browsers.
Read more >Styling rule on collapsed PBI - Developer Community
Is there a way to add the styling rule color of the PBI to show when the work item is collapsed? ... Hello,...
Read more >Collapse · Bootstrap
(similar to traditional accordion behavior - this is dependent on the card class). The attribute has to be set on the target collapsible...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@andrewleader I do, it is the behavior of the JS renderer. ShowCard was designed very early on and comes from the equivalent feature in Outlook Actionable Messages. The feature, including the interaction model, was designed by our designer at the time.
This issue has been automatically marked as stale because it has not had any activity for 5 days.