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

Signed-off-by: Stefan Woehrer <stefan.woehrer@lean-coders.at>
This commit is contained in:
Stefan Woehrer 2022-07-26 14:15:05 +02:00
parent f61330611e
commit ed671fc2fe

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