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

FORMS-12148 ensuring different radio button group elements have diffe… #1013

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vdua
Copy link
Collaborator

@vdua vdua commented Dec 15, 2023

…rent name

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

@@ -43,7 +43,7 @@
<label class="cmp-adaptiveform-radiobutton__option-label"
title="${radioButton.tooltipVisible ? '' : radioButton.tooltipText}">
<input type="radio"
name="${radioButton.name}"
name="${radioButton.id}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Test cases are failing due to this change, shouldn't name be the radio button's name ? Can you also add repeatable test case in the existing repeatable test suite ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No. Different radio button in the same group should have same names but not across the different groups.
Radio Button Groups can have same name across panels/repeating panels, hence we should use id since id is unique for different groups

Copy link
Collaborator

@rismehta rismehta left a comment

Choose a reason for hiding this comment

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

check comments

@im-shiv
Copy link
Contributor

im-shiv commented Dec 15, 2023

@vdua merge is direct into master shouldn't it be dev first?

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.

None yet

3 participants