Skip to content

Fix to allow only one radio button to be selected - #32

Merged
breedloj merged 1 commit into
mainfrom
paras/feedbackMultiRadioSelectFix
Sep 23, 2024
Merged

Fix to allow only one radio button to be selected#32
breedloj merged 1 commit into
mainfrom
paras/feedbackMultiRadioSelectFix

Conversation

@pras0131

Copy link
Copy Markdown
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
@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