File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -1131,7 +1131,10 @@ export const InnerEvaluatorForm = (props: {
1131
1131
< Form { ...form } >
1132
1132
< form
1133
1133
// eslint-disable-next-line @typescript-eslint/no-misused-promises
1134
- onSubmit = { form . handleSubmit ( onSubmit ) }
1134
+ onSubmit = { ( e ) => {
1135
+ e . stopPropagation ( ) ; // Prevent event bubbling to parent forms
1136
+ form . handleSubmit ( onSubmit ) ( e ) ;
1137
+ } }
1135
1138
onKeyDown = { ( e ) => {
1136
1139
if ( e . key === "Enter" && e . target instanceof HTMLInputElement ) {
1137
1140
e . preventDefault ( ) ;
Original file line number Diff line number Diff line change @@ -475,7 +475,10 @@ export function CreateLLMApiKeyForm({
475
475
< Form { ...form } >
476
476
< form
477
477
className = { cn ( "flex flex-col gap-4 overflow-auto" ) }
478
- onSubmit = { form . handleSubmit ( onSubmit ) }
478
+ onSubmit = { ( e ) => {
479
+ e . stopPropagation ( ) ; // Prevent event bubbling to parent forms
480
+ form . handleSubmit ( onSubmit ) ( e ) ;
481
+ } }
479
482
>
480
483
< DialogBody >
481
484
{ /* LLM adapter */ }
You can’t perform that action at this time.
0 commit comments