mirror of https://github.com/vector-im/riot-web
Merge branch 'develop' into expand-codeblock
commit
45d0270bca
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue