Skip to content

AdaptiveCardHostConfig is not being passed to CommonCard component as a prop #2106

@tdurnford

Description

@tdurnford

Screenshots

image

Version

Local build: 0.0.0-0

Describe the bug

Rich Cards that are built on top of the CommonCard Component - AnimationCards, AudioCards, SignInCards, and VideoCards - are not passing the AdaptiveCardHostConfig as prop to CommonCard. Web Chat is raising a "The prop `adaptiveCardHostConfig` is marked as required in `CommonCard`, but its value is `undefined`." warning as a result.

To Reproduce

Send one of the cards mentioned above as an attachment to Web Chat.

await context.sendActivity({ attachments: [
  CardFactory.animationCard(
     'Microsoft Bot Framework',
      [ { url: 'https://i.giphy.com/Ki55RUbOV5njy.gif' }],
      [],
      { subtitle: 'Animation Card' });
  ] 
});

[Bug]

Metadata

Metadata

Assignees

Labels

bugIndicates an unexpected problem or an unintended behavior.front-burner

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions