microsoft / microsoft/AdaptiveCards

Widgets: `Action.Execute` not working when using `RichTextBlock`

Open
#9,344 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Describe the bug

When using a RichTextBlock the Action.Execute of the prent Container is not triggered when clicked. Instead we get a "text selection" cursor to highlight the text. This is different behavior compared to the normal TextBlock

Steps to reproduce the bug

Put a RichTextBlock in a Container with a Action.Execute and click on the text

Example project: test.zip

Expected behavior

OnActionInvoked is executed

Screenshots

Image

NuGet package version

Windows App SDK 1.7.3: 1.7.250606001

Packaging type

Packaged (MSIX)

Windows version

Windows 11 version 24H2 LTSC (26100, June Update)

IDE

Visual Studio 2022

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open the attached test.zip and reproduce the issue with a RichTextBlock inside a Container using Action.Execute on Windows App SDK 1.7.3. Trace the interaction from the RichTextBlock click and compare it with the normal TextBlock behavior; done means clicking the text executes OnActionInvoked instead of enabling text selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.