use type='number' for port input

This commit is contained in:
Sean Yesmunt 2019-12-15 22:51:19 -05:00
parent 9d83de7eea
commit 8f66ac9556

View file

@ -46,11 +46,11 @@ function ServerInputRow(props: Props) {
/>
<span className="form-field__conjuction">:</span>
<FormField
type="text"
type="number"
label={__('Port')}
placeholder={'50001'}
value={portString}
onChange={e => setPortString(e.target.value)}
onChange={e => setPortString(String(e.target.value))}
/>
</div>