We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 941dd26 commit 1db28f7Copy full SHA for 1db28f7
src/ProChat/components/InputArea/AutoCompleteTextArea.tsx
@@ -32,8 +32,12 @@ export const AutoCompleteTextArea: React.FC<TextAreaProps> = (props) => {
32
>
33
<Input.TextArea
34
{...props}
35
+ onFocus={(e) => {
36
+ setOpen(false);
37
+ props.onFocus?.(e);
38
+ }}
39
onPressEnter={(e) => {
- if (open) return;
40
+ if (open && options.length > 0) return;
41
props.onPressEnter?.(e);
42
}}
43
/>
0 commit comments