1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Merge branch 'develop' into expand-codeblock

This commit is contained in:
Šimon Brandner
2021-01-18 19:08:24 +01:00

View File

@@ -151,7 +151,7 @@ export default class ServerPickerDialog extends React.PureComponent<IProps, ISta
const valid = await this.fieldRef.current.validate({ allowEmpty: false }); const valid = await this.fieldRef.current.validate({ allowEmpty: false });
if (!valid) { if (!valid && !this.state.defaultChosen) {
this.fieldRef.current.focus(); this.fieldRef.current.focus();
this.fieldRef.current.validate({ allowEmpty: false, focused: true }); this.fieldRef.current.validate({ allowEmpty: false, focused: true });
return; return;