We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af7c7ae commit 86b01b0Copy full SHA for 86b01b0
1 file changed
src/components/shared/wizard/RenderMultiField.tsx
@@ -211,15 +211,16 @@ const ShowValue = ({
211
}) => {
212
return (
213
<div
214
- tabIndex={0}
215
- onClick={() => setEditMode(true)}
+ tabIndex={0}
+ onClick={() => setEditMode(true)}
216
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
- }}
+ onKeyDown={e => {
+ if (e.key === "Enter" || e.key === " ") {
+ setEditMode(true);
+ e.preventDefault();
+ }
+ }}
223
+
224
onBlur={onBlur}
225
className="show-edit"
226
>
0 commit comments