Fix automatic field population in space create menu not validating

This commit is contained in:
Michael Telatynski 2021-09-13 17:15:52 +01:00
parent f9e17621af
commit 4a470e4341

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