1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

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:
stewoe 2022-07-27 13:03:58 +02:00 committed by GitHub
parent a12b94405a
commit 392d548bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,6 +127,7 @@ class NonInjectedPortForwardDialog extends Component<PortForwardDialogProps & De
value={this.desiredPort === 0 ? "" : String(this.desiredPort)} value={this.desiredPort === 0 ? "" : String(this.desiredPort)}
placeholder={"Random"} placeholder={"Random"}
onChange={this.changePort} onChange={this.changePort}
autoFocus
/> />
</div> </div>
<Checkbox <Checkbox