Skip to content

Commit 01f2996

Browse files
committed
fix "run workflow" dropdown focus
1 parent 54fbd31 commit 01f2996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/repo/actions/workflow_dispatch_inputs.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
</div>
3434
{{end}}
3535
<div class="ui field">
36-
<button class="ui tiny primary button" type="submit">{{ctx.Locale.Tr "actions.workflow.run"}}</button>
36+
{{/* use autofocus here to prevent the "branch selection" dropdown from getting focus, otherwise it will auto popup */}}
37+
<button class="ui tiny primary button" autofocus type="submit">{{ctx.Locale.Tr "actions.workflow.run"}}</button>
3738
</div>
3839
{{end}}
3940
{{range .workflows}}

0 commit comments

Comments
 (0)