From 8c701945501deade6fd20d9f2209ae0f44cc60b6 Mon Sep 17 00:00:00 2001 From: Emily Yadon Date: Wed, 12 Jul 2023 09:26:00 -0500 Subject: [PATCH] Add card Id to dictionary for select actions Fixes #8581 --- .../Helpers/SelectActionHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/dotnet/Library/AdaptiveCards.Rendering.Wpf/Helpers/SelectActionHelper.cs b/source/dotnet/Library/AdaptiveCards.Rendering.Wpf/Helpers/SelectActionHelper.cs index bf5cb5ae7c..5b46767f54 100644 --- a/source/dotnet/Library/AdaptiveCards.Rendering.Wpf/Helpers/SelectActionHelper.cs +++ b/source/dotnet/Library/AdaptiveCards.Rendering.Wpf/Helpers/SelectActionHelper.cs @@ -20,6 +20,11 @@ public static FrameworkElement RenderSelectAction(this AdaptiveRenderContext con return uiElement; } + if (selectAction is AdaptiveSubmitAction || selectAction is AdaptiveExecuteAction) + { + context.SubmitActionCardId[selectAction] = context.RenderArgs.ContainerCardId; + } + context.IsRenderingSelectAction = true; var uiButton = (Button) context.Render(selectAction); context.IsRenderingSelectAction = false;