Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form state update, index update #301

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

Bonymol-aot
Copy link
Contributor

Issue Tracking

JIRA:
Issue Type: BUG/ FEATURE

Changes

@@ -29,7 +31,7 @@ export const CustomRadioButton: React.FC<CustomRadioButtonProps> = ({
id={`inline-radio-${index + 1}`}
data-testid={`${dataTestid}-inline-radio-${index + 1}`}
key={`radio-${index + 1}`}
defaultChecked={index === 0}
defaultChecked={index === indexValue}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

onchange is common handler for selection

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class name is empty

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is value prop in this radio btton

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of passing indexValue do we need to pass the value to make sure default check. @arun-s-aot

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree to that. index checking can be replaced with value checking @Bonymol-aot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants