mirror of
https://git.boos.lat/aibo/BossChat.git
synced 2026-10-30 15:16:11 +00:00
fix: use handleSubmit directly instead of form requestSubmit
Bypass potential React portal form resolution issues by calling react-hook-form handleSubmit(onFormSubmit)() directly in the button onClick handler.
This commit is contained in:
@@ -284,7 +284,7 @@ function AgentEditDialogBody({
|
||||
</Button>
|
||||
<Button
|
||||
type="button"
|
||||
onClick={() => formRef.current?.requestSubmit()}
|
||||
onClick={() => handleSubmit(onFormSubmit)()}
|
||||
disabled={saving || loading}
|
||||
>
|
||||
{saving ? "保存中..." : "保存"}
|
||||
|
||||
Reference in New Issue
Block a user