dns config ip validation
This commit is contained in:
@@ -337,15 +337,11 @@ const Form = ({ processing, initialValues, onSubmit }: Props) => {
|
|||||||
<Input
|
<Input
|
||||||
{...field}
|
{...field}
|
||||||
data-testid="dns_config_blocked_response_ttl"
|
data-testid="dns_config_blocked_response_ttl"
|
||||||
type="number"
|
type="text"
|
||||||
label={label}
|
label={label}
|
||||||
desc={description}
|
desc={description}
|
||||||
error={fieldState.error?.message}
|
error={fieldState.error?.message}
|
||||||
disabled={processing}
|
disabled={processing}
|
||||||
onChange={(e) => {
|
|
||||||
const { value } = e.target;
|
|
||||||
field.onChange(toNumber(value));
|
|
||||||
}}
|
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user