mirror of
https://github.com/vector-im/element-web.git
synced 2026-02-25 17:41:04 +01:00
Fix space create menu eating first character of name in private space creation
This commit is contained in:
parent
ff39f480bc
commit
e3ec00bcdf
@ -177,7 +177,7 @@ export const SpaceCreateForm: React.FC<ISpaceCreateFormProps> = ({
|
||||
const newName = ev.target.value;
|
||||
if (!alias || alias === `#${nameToLocalpart(name)}:${domain}`) {
|
||||
setAlias(`#${nameToLocalpart(newName)}:${domain}`);
|
||||
aliasFieldRef.current.validate({ allowEmpty: true });
|
||||
aliasFieldRef.current?.validate({ allowEmpty: true });
|
||||
}
|
||||
setName(newName);
|
||||
}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user