Merge pull request #6792 from matrix-org/t3chguy/fix/19005

Fix automatic field population in space create menu not validating
pull/21833/head
Michael Telatynski 2021-09-14 09:06:49 +01:00 committed by GitHub
commit 73a2225b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ export const SpaceCreateForm: React.FC<ISpaceCreateFormProps> = ({
const newName = ev.target.value;
if (!alias || alias === nameToAlias(name, domain)) {
setAlias(nameToAlias(newName, domain));
aliasFieldRef.current.validate({ allowEmpty: true });
}
setName(newName);
}}