Merge pull request #6792 from matrix-org/t3chguy/fix/19005
Fix automatic field population in space create menu not validatingpull/21833/head
commit
73a2225b10
|
@ -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 New Issue