Skip to content

Commit 86b01b0

Browse files
committed
fix tabbing issue
1 parent af7c7ae commit 86b01b0

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

src/components/shared/wizard/RenderMultiField.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,16 @@ const ShowValue = ({
211211
}) => {
212212
return (
213213
<div
214-
tabIndex={0}
215-
onClick={() => setEditMode(true)}
214+
tabIndex={0}
215+
onClick={() => setEditMode(true)}
216216
onFocus={() => setEditMode(true)} // <-- activate edit mode on focus
217-
onKeyDown={e => {
218-
if (e.key === "Enter" || e.key === " ") {
219-
setEditMode(true);
220-
e.preventDefault();
221-
}
222-
}}
217+
onKeyDown={e => {
218+
if (e.key === "Enter" || e.key === " ") {
219+
setEditMode(true);
220+
e.preventDefault();
221+
}
222+
}}
223+
223224
onBlur={onBlur}
224225
className="show-edit"
225226
>

0 commit comments

Comments
 (0)