Disable space fields whilst their form is busy

This commit is contained in:
Michael Telatynski 2021-05-12 13:30:00 +01:00
parent 5d02e44293
commit 2c89be312a
3 changed files with 8 additions and 4 deletions

View file

@ -451,6 +451,7 @@ const SpaceSetupFirstRooms = ({ space, title, description, onFinished }) => {
value={roomNames[i]}
onChange={ev => setRoomName(i, ev.target.value)}
autoFocus={i === 2}
disabled={busy}
/>;
});
@ -658,6 +659,7 @@ const SpaceSetupPrivateInvite = ({ space, onFinished }) => {
ref={fieldRefs[i]}
onValidate={validateEmailRules}
autoFocus={i === 0}
disabled={busy}
/>;
});