remove method of FieldArray triggers submission #10688
Unanswered
ranran2121
asked this question in
Q&A
Replies: 2 comments
-
@bluebill1049, can you please help me? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please provide a codesandbox url to re-produce the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using the FieldArray and when I delete an item od the array I have noticed that a submission gets triggered. That is, when I click the X button, I remove correctly the item, but I have "DATA" printed in the console, that is the handleSumbit is called
Is there a way to avoid this and have the submission ONLY when I click the submit button?
using nextjs@13.4.10
Beta Was this translation helpful? Give feedback.
All reactions