diff options
Diffstat (limited to 'src/components/Question.tsx')
-rw-r--r-- | src/components/Question.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/Question.tsx b/src/components/Question.tsx index 567da2c..e619a45 100644 --- a/src/components/Question.tsx +++ b/src/components/Question.tsx @@ -18,7 +18,9 @@ const skip_normal_state: Array<QuestionType> = [ export type QuestionProp = { question: Question, public_state: Map<string, string | boolean | null>, - scroll_ref: React.RefObject<HTMLDivElement> + scroll_ref: React.RefObject<HTMLDivElement>, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + focus_ref: React.RefObject<any> } class RenderedQuestion extends React.Component<QuestionProp> { @@ -256,7 +258,7 @@ class RenderedQuestion extends React.Component<QuestionProp> { <h2 css={[selectable, requiredStarStyles]}> {question.name}<span className={question.required ? "required" : ""}>*</span> </h2> - { create_input(this.props, this.handler, this.blurHandler) } + { create_input(this.props, this.handler, this.blurHandler, this.props.focus_ref) } <ErrorMessage show={!valid} message={error} /> <hr css={css`color: gray; margin: 3rem 0;`}/> </div>; |