Skip to content

[Rendering] TextRun with selectAction inside RichTextBlock not rendered as link and on new line #9100

@donaldpipowitch

Description

@donaldpipowitch

Target Platforms

Other

SDK Version

1.4

Application Name

Microsoft Teams

Problem Description

When I use RichTextBlock with TextRun's and selectAction the actions aren't rendered as inline links anymore, but as regular text on new lines. This used to work everywhere before Christmas, stopped working on MS Teams Desktop around Christmas, recently stopped working on MS Teams in the browser and now it only works in MS Teams Mobile (tested with Android).

Code Snippet:

{
  type: 'RichTextBlock',
  inlines: [
    {
      type: 'TextRun',
      text: 'E2E Successful',
      color: 'good',
      weight: 'bolder',
    },
    {
      type: 'TextRun',
      text: ` ${title}. ${randomEmoji} (`,
    },
    {
      type: 'TextRun',
      selectAction: {
        type: 'Action.OpenUrl',
        url: `https://example.com/1`,
      },
      text: 'Cypress Job',
    },
    {
      type: 'TextRun',
      text: ', ',
    },
    {
      type: 'TextRun',
      selectAction: {
        type: 'Action.OpenUrl',
        url: `https://example.com/2`,
      },
      text: 'Playwright Job',
    },
    {
      type: 'TextRun',
      text: ')',
    },
  ],
};

Screenshots

Desktop

Image

Android

Image

Card JSON

See above.

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