Skip to content

Commit 6116fd8

Browse files
authored
Fix not focusing choice inputs (#11919)
1 parent 02af028 commit 6116fd8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Aspire.Dashboard/Components/Dialogs/InteractionsInputDialog.razor.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
using Aspire.Dashboard.Model.Interaction;
55
using Aspire.Dashboard.Model.Markdown;
6+
using Aspire.Dashboard.Model.Otlp;
67
using Aspire.Dashboard.Resources;
78
using Aspire.DashboardService.Proto.V1;
89
using Microsoft.AspNetCore.Components;
@@ -91,6 +92,10 @@ protected override Task OnAfterRenderAsync(bool firstRender)
9192
{
9293
numberInput.FocusAsync();
9394
}
95+
else if (firstInputElement is FluentInputBase<SelectViewModel<string>> selectInput)
96+
{
97+
selectInput.FocusAsync();
98+
}
9499
}
95100
}
96101

0 commit comments

Comments
 (0)