ProcessMaker / vue-form-elements

Reusable VueJS Based Form Elements
25 stars 12 forks source link

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

Closed sanjacornelius closed 3 months ago

sanjacornelius commented 3 months ago

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…]()

processmaker-sonarqube[bot] commented 3 months ago

Quality Gate passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
0.0% 0.0% Coverage on New Code
0.0% 0.0% Duplication on New Code

See analysis details on SonarQube

sanjacornelius commented 3 months ago

Closing. Fix by https://github.com/ProcessMaker/vue-form-elements/pull/428