Skip to content

Commit 187fc4c

Browse files
add autofocus to fpat input
1 parent 1182df6 commit 187fc4c

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

editor-packages/editor-preferences/components/text-field.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@ export function TextField({
66
value,
77
disabled,
88
fullWidth,
9+
autofocus,
910
onChange,
1011
onSubmit,
1112
}: {
1213
placeholder?: string;
1314
value?: string;
1415
disabled?: boolean;
1516
fullWidth?: boolean;
17+
autofocus?: boolean;
1618
onChange?: (value: string) => void;
1719
onSubmit?: () => void;
1820
}) {
1921
return (
2022
<InputWrapper
23+
autoFocus={autofocus}
2124
disabled={disabled}
2225
value={value}
2326
placeholder={placeholder}

editor/scaffolds/preferences/preferences-figma-personal-access-tokens.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ function RegisterNewFpat({
130130
<div style={{ width: "100%" }}>
131131
<TextField
132132
fullWidth
133+
autofocus
133134
placeholder="figd_xxxxxxxxxxxxx"
134135
value={value}
135136
onChange={setValue}

0 commit comments

Comments
 (0)