Skip to content

Commit 1bdb69c

Browse files
committed
fix login
1 parent 33d04b3 commit 1bdb69c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/editor/src/app/matrix-auth/MatrixAuthStore.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,8 @@ export class MatrixAuthStore extends lifecycle.Disposable {
973973
) {
974974
this.needsE2ESetup = true;
975975
// this.setStateForNewView({ view: Views.E2E_SETUP });
976+
StorageManager.tryPersistStorage();
977+
this.setLoggedInState(true);
976978
} else {
977979
// this.onLoggedIn();
978980
StorageManager.tryPersistStorage();

packages/editor/src/app/matrix-auth/auth/elements/Field.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ export interface IValidationResult {
8585

8686
export interface IInputProps<T>
8787
extends IProps<T>,
88-
Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "type"> {
88+
Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "type"> {
8989
// The element to create. Defaults to "input".
9090
element?: "input";
9191
}
9292

9393
// TODO: consider removing SelectHTMLAttributes extension and use custom props
9494
interface ISelectProps<FieldValue>
9595
extends IProps<FieldValue>,
96-
Omit<SelectHTMLAttributes<HTMLSelectElement>, "defaultValue" | "type"> {
96+
Omit<SelectHTMLAttributes<HTMLSelectElement>, "defaultValue" | "type"> {
9797
// To define options for a select, use <Field><option ... /></Field>
9898
element: "select";
9999
options?: OptionType[];
@@ -102,7 +102,7 @@ interface ISelectProps<FieldValue>
102102

103103
interface ITextareaProps<FieldValue>
104104
extends IProps<FieldValue>,
105-
Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue"> {
105+
Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue"> {
106106
element: "textarea";
107107
}
108108

@@ -235,6 +235,7 @@ export default class Field<FieldValue> extends React.PureComponent<
235235
<Select
236236
{...(inputProps_ as any)}
237237
{...fieldProps}
238+
isSearchable={false}
238239
onChange={(e) => {
239240
// trigger both handlers if set
240241
// fieldProps.onChange?.(e); // exclude ecause we only use this for mx_Login_type_container. Perhaps better if we refactor that to a regular <select>

0 commit comments

Comments
 (0)