Skip to content

Commit 5be9e6f

Browse files
committed
feat: Fixed esc button not functioning
1 parent cd89453 commit 5be9e6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/FormFieldRenderer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, { useState } from 'react';
1+
import React, { useEffect, useState } from 'react';
22
import { FormField, FormFieldRendererProps, SpecificFormFieldRendererProps } from './types.js';
3-
import { Box, useFocus, Text, useInput } from 'ink';
3+
import { Box, useFocus, Text, useInput, useFocusManager } from 'ink';
44
import { getManager } from './managers/managers.js';
55
import { DescriptionRenderer } from './DescriptionRenderer.js';
66

@@ -42,7 +42,7 @@ export const FormFieldRenderer: React.FC<FormFieldRendererProps<any>> = props =>
4242
save();
4343
}
4444
},
45-
{ isActive: isFocused }
45+
{ isActive: isFocused || isEditing }
4646
);
4747

4848
if (hide) {

0 commit comments

Comments
 (0)