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 to allow only one radio button to be selected #32

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

pras0131
Copy link
Contributor

Reference ticket: https://issues.amazon.com/issues/ECLIPSE-298

During some refactoring, the onWidgetSelection listener of the radio buttons was accidentally removed(representing Positive and Negative sentiments), which allowed both radio buttons to be selected simultaneously.

The PR aims to fix that, which would allow only one radio button to be selected at a time and hence setting the correct selected sentiment state. WidgetListeners for each radio button can be and mostly be different only, so extracting the same out of the common method which creates custom radio buttons.

The changes have been tested on local and working smooth.

@pras0131 pras0131 requested a review from breedloj September 23, 2024 09:29
@breedloj breedloj merged commit 26eebed into main Sep 23, 2024
1 check passed
@breedloj breedloj deleted the paras/feedbackMultiRadioSelectFix branch September 23, 2024 17:09
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