Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Commit 2f27faa

Browse files
daansmitrvdh
authored andcommitted
Resolve eslint order problem
1 parent bda4bd4 commit 2f27faa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/components/input_fields/code_field.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ export interface CodeFieldState {
4242
* The code field is a text field that includes {maxLength} single-letter password inputs.
4343
*/
4444
export class CodeField extends React.Component<CodeFieldProps, CodeFieldState> {
45+
/**
46+
* if the user wrote one of the later characters but not earlier ones,
47+
* we add this character as filler
48+
*/
49+
private static readonly _emptyChar: string = '\t';
50+
4551
/**
4652
* References to the input fields to focus on them.
4753
* Note that we don't use React.CreateRef because that would require some extra code
@@ -102,12 +108,6 @@ export class CodeField extends React.Component<CodeFieldProps, CodeFieldState> {
102108
};
103109
}
104110

105-
/**
106-
* if the user wrote one of the later characters but not earlier ones,
107-
* we add this character as filler
108-
*/
109-
private static readonly _emptyChar: string = '\t';
110-
111111
/**
112112
* Handles changes to the text selection in the document.
113113
* Without this function, if the value of the field changes (with delete for example)

0 commit comments

Comments
 (0)