You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fix automatic field population in space create menu not validating
This commit is contained in:
@@ -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);
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user