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:
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

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);
}}