-
Notifications
You must be signed in to change notification settings - Fork 84
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) O3-3958: Allow user to select all answer options #389
base: main
Are you sure you want to change the base?
(fix) O3-3958: Allow user to select all answer options #389
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Muta-Jonathan! A couple of things, the select all option isn't showing up when I run this locally, so please double check this fix and include a screenshot of how it works. Additionally, you'd have to override the import map and test within the app shell and try locally linking the form engine and running because the carbon update is still pending in the form engine and might cause issues.
…into add-select-all-concept-answers
…o avoid updating during render
Requirements
Summary
"@carbon/react": "^1.75.0",
which is the latest as per this PRformField.questionOptions?.answers
which wen updated from thewould trigger changes to the formfields hence making
to show only selected items as options
Now with this new implementation have introduced the
useRe
f to store the initial state ofconst initialAnswers = useRef(formField.questionOptions?.answers ?? []);
so as to show all selected and unselected question answersScreen recording
Screen.Recording.2025-02-05.at.2.02.21.AM.mov
Related Issue
https://openmrs.atlassian.net/browse/O3-3958