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

Fix Display of Selected Option Label in Radio Button Select Lists with Collections #427

Closed
wants to merge 1 commit into from

Conversation

sanjacornelius
Copy link
Contributor

@sanjacornelius sanjacornelius commented Jul 3, 2024

This PR resolves an issue where select lists configured as radio buttons with collections did not display the selected option label. The problem was identified through a failing E2E test.

Issue:

The issue was due to the overwriting of a particular property __content__ within this.selectedListOptions when an option was selected.

Solution:

Updated the method to use Object.assign instead of this.$set to ensure existing properties are not overwritten.

How to Test

  1. Run all E2E tests for the SelectListCollection component.
  2. Follow the replication steps outlined in the ticket FOUR-16938.

Related Tickets and PRs

FOUR-16938

ci:next

Uploading Screenshot 2024-07-03 at 3.35.33 PM.png…

… by using Object.assign instead of this.$set
@sanjacornelius sanjacornelius requested a review from danloa July 3, 2024 22:37
Copy link

@sanjacornelius
Copy link
Contributor Author

Closing. Fix by #428

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.

2 participants