Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6792 from matrix-org/t3chguy/fix/19005
Browse files Browse the repository at this point in the history
Fix automatic field population in space create menu not validating
  • Loading branch information
t3chguy committed Sep 14, 2021
2 parents 298fb49 + 4a470e4 commit 73a2225
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/views/spaces/SpaceCreateMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}}
Expand Down

0 comments on commit 73a2225

Please sign in to comment.