Prevent default selected radio button on next fields. #12292
Answered
by
oluwatunmiisheii
jamesgordo
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Fixed like so, you can find the solution here https://codesandbox.io/p/sandbox/rhf-multistep-radio-forked-sk5p9k?workspaceId=7022911d-a118-40f4-9603-b330a7cac3f7 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jamesgordo
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.
-
I'm trying to create a multistep form where each step has one question with Radio button selection (Yes/No) as answer. However, if I select the answer for the 1st question e.g
Yes
, when I click the Next button, on the next Question, theYES
radio button is already selected even if I did not click/selected the answer yet for the next question.Demo:
https://codesandbox.io/p/sandbox/drrvc3
Steps to replicate:
Yes
for Step 2 is already selected even if user did not selected it yet.Is there a way to prevent the auto select of the radio button on the next steps/questions?
Beta Was this translation helpful? Give feedback.
All reactions