This commit is contained in:
Vishnu Gt 2026-07-31 13:46:46 +05:30 committed by GitHub
commit 24ca1694de
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -33,7 +33,7 @@ export function DomainNamesField({
const handleChange = (v: MultiValue<SelectOption>, _actionMeta: ActionMeta<SelectOption>) => {
const doms = v?.map((i: SelectOption) => {
return i.value;
return i.value.trim();
});
setFieldValue(name, doms);
onChange?.(doms);

View file

@ -210,6 +210,10 @@ const ProxyHostModal = EasyModal.create(({ id, visible, remove }: Props) => {
required
placeholder="example.com"
{...field}
onChange={(e) => {
const trimmed = e.target.value.trim();
field.onChange({ ...e, target: { ...e.target, value: trimmed } });
}}
/>
{form.errors.forwardHost ? (
<div className="invalid-feedback">