microsoft / microsoft/AdaptiveCards
Widgets: `Action.Execute` not working when using `RichTextBlock`
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
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
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
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