Merge pull request #6792 from matrix-org/t3chguy/fix/19005
Fix automatic field population in space create menu not validating
This commit is contained in:
commit
73a2225b10
1 changed files with 1 additions and 0 deletions
|
@ -178,6 +178,7 @@ export const SpaceCreateForm: React.FC<ISpaceCreateFormProps> = ({
|
||||||
const newName = ev.target.value;
|
const newName = ev.target.value;
|
||||||
if (!alias || alias === nameToAlias(name, domain)) {
|
if (!alias || alias === nameToAlias(name, domain)) {
|
||||||
setAlias(nameToAlias(newName, domain));
|
setAlias(nameToAlias(newName, domain));
|
||||||
|
aliasFieldRef.current.validate({ allowEmpty: true });
|
||||||
}
|
}
|
||||||
setName(newName);
|
setName(newName);
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue