mirror of
https://github.com/woodchen-ink/clash-and-dashboard.git
synced 2025-07-18 14:01:56 +08:00
Fix: display NaN when input is empty (#36)
Co-authored-by: kangyuantong <gongyu@gaoding.com>
This commit is contained in:
parent
e8bf3e4df6
commit
9f95b2d83a
@ -155,7 +155,7 @@ export default function Settings () {
|
|||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<Input
|
<Input
|
||||||
value={info.socks5ProxyPort}
|
value={info.socks5ProxyPort}
|
||||||
onChange={socks5ProxyPort => set('socks5ProxyPort', parseInt(socks5ProxyPort, 10))}
|
onChange={socks5ProxyPort => set('socks5ProxyPort', +socks5ProxyPort)}
|
||||||
onBlur={handleSocksPortSave}
|
onBlur={handleSocksPortSave}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
@ -169,7 +169,7 @@ export default function Settings () {
|
|||||||
<Col span={8}>
|
<Col span={8}>
|
||||||
<Input
|
<Input
|
||||||
value={info.httpProxyPort}
|
value={info.httpProxyPort}
|
||||||
onChange={httpProxyPort => set('httpProxyPort', parseInt(httpProxyPort, 10))}
|
onChange={httpProxyPort => set('httpProxyPort', +httpProxyPort)}
|
||||||
onBlur={handleHttpPortSave}
|
onBlur={handleHttpPortSave}
|
||||||
/>
|
/>
|
||||||
</Col>
|
</Col>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user