Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(llm-tool-dialog): do not propagate textarea keystrokes up (#7023)

Hassieb Pakzadf71fd43d9133
diff --git a/web/src/ee/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx b/web/src/ee/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx
index 98d362b753..01249e43bf 100644
--- a/web/src/ee/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx
+++ b/web/src/ee/features/playground/page/components/CreateOrEditLLMSchemaDialog.tsx
@@ -187,6 +187,9 @@ export const CreateOrEditLLMSchemaDialog: React.FC<
placeholder="Describe the schema"
className="max-h-[120px] focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0"
{...field}
+ onKeyDown={(e) => {
+ e.stopPropagation();
+ }}
/>
</FormControl>
<FormMessage />
diff --git a/web/src/ee/features/playground/page/components/CreateOrEditLLMToolDialog.tsx b/web/src/ee/features/playground/page/components/CreateOrEditLLMToolDialog.tsx
index f5f5c69e7b..84ccd63af5 100644
--- a/web/src/ee/features/playground/page/components/CreateOrEditLLMToolDialog.tsx
+++ b/web/src/ee/features/playground/page/components/CreateOrEditLLMToolDialog.tsx
@@ -196,6 +196,9 @@ export const CreateOrEditLLMToolDialog: React.FC<CreateOrEditLLMToolDialog> = (
placeholder="Describe the tool's purpose and usage"
className="max-h-[120px] focus:ring-0 focus:ring-offset-0 focus-visible:ring-0 focus-visible:ring-offset-0"
{...field}
+ onKeyDown={(e) => {
+ e.stopPropagation();
+ }}
/>
</FormControl>
<FormMessage />