From 82a4ed1b38c2ef06bc277e1212b1b5ef4c84cf62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20DEVILLARD?= Date: Fri, 26 Jan 2024 10:30:36 +0100 Subject: [PATCH] Configure Leading edge Debounce Strategy to allow refresh of dropdown at the first render of the activity. This is necessary if the UI Handler use for example a User Token to call external API. --- .../Components/ActivityProperties/Tabs/InputsTab.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Elsa.Studio.Workflows/Components/WorkflowDefinitionEditor/Components/ActivityProperties/Tabs/InputsTab.razor.cs b/src/modules/Elsa.Studio.Workflows/Components/WorkflowDefinitionEditor/Components/ActivityProperties/Tabs/InputsTab.razor.cs index eb32bcd4..c59efd92 100644 --- a/src/modules/Elsa.Studio.Workflows/Components/WorkflowDefinitionEditor/Components/ActivityProperties/Tabs/InputsTab.razor.cs +++ b/src/modules/Elsa.Studio.Workflows/Components/WorkflowDefinitionEditor/Components/ActivityProperties/Tabs/InputsTab.razor.cs @@ -28,7 +28,7 @@ public partial class InputsTab /// public InputsTab() { - _rateLimitedInputPropertyRefreshAsync = Debouncer.Debounce, InputDescriptor, Task>(RefreshDescriptor, TimeSpan.FromMilliseconds(100)); + _rateLimitedInputPropertyRefreshAsync = Debouncer.Debounce, InputDescriptor, Task>(RefreshDescriptor, TimeSpan.FromMilliseconds(100), true); } ///