Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 37f2397

Browse files
committed
Scroll JobFormComponent into view on focus. Fixes #1048. [ci skip]
1 parent f3e2e5e commit 37f2397

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/3_JobFormComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export class JobFormComponent extends React.Component<Props, State> {
123123
}
124124

125125
focus(): void {
126+
this.scrollIntoView();
126127
this.commandNode.focus();
127128
}
128129

@@ -205,7 +206,7 @@ export class JobFormComponent extends React.Component<Props, State> {
205206
}
206207

207208
scrollIntoView(): void {
208-
this.commandNode.scrollIntoView(true);
209+
this.placeholderNode.scrollIntoView(true);
209210
}
210211

211212
private setText(text: string): void {

0 commit comments

Comments
 (0)