Set focus on port field when port-forward-dialog opens (#5908)

Signed-off-by: Stefan Woehrer <stefan.woehrer@lean-coders.at>

Co-authored-by: Stefan Woehrer <stefan.woehrer@lean-coders.at>
This commit is contained in:
stewoeandStefan Woehrer authored and GitHub committed 2022-07-27 14:03:58 +03:00
1 parent a12b94405a
commit 392d548bf0
1 file changed
+1
@@ -127,6 +127,7 @@ class NonInjectedPortForwardDialog extends Component<PortForwardDialogProps & De
value={this.desiredPort === 0 ? "" : String(this.desiredPort)}
placeholder={"Random"}
onChange={this.changePort}
autoFocus
/>
</div>
<Checkbox