-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Feature Request]: In MultiSelect, show a read-only list of user's selections #16120
Comments
Thank you for submitting a feature request. Your proposal is open and will soon be triaged by the Carbon team. |
To illustrate this, head to the storybook. Select a couple options in the list and then set As a user I have no way to know what's actually selected. It seems odd the user can't view the options by opening the dropdown. It's probably technically possible to allow the dropdown to open and forcing all options to be disabled while still showing the selected/checkbox checked for the ones selected. I'm not sure if there's any accessibility implications with that idea though. |
Discussed a possible solution for the read-only state problem: [SOLUTION A] Example screenshot from the website: [SOLUTION B] Both solutions seem viable according to Michael Gower |
This has also come up on a project that I'm working on. The component isn't great at showing what has been selected to begin with and becomes completely non-functional in the current read only state. |
The problem
In the
MultiSelect
component, we have a use case where we want to display the user's selections in a read-only mode. One use case is when the user is making selections through a multi-step Wizard, and we need to show a Summary page of the user's selections at the end of the Wizard.Currently that's not possible natively as both the existing
readOnly
&disabled
props disable the component entirely.The solution
Change how the
readOnly
prop behaves by allowing the dropdown to be expanded, showing both the user's selections and other options in a disabled state. This allows the user to see what they've previously selected while providing a true read-only mode that doesn't let me make any modifications.Alternatively, a third flag prop (beside
readOnly
&disabled
) can be use to trigger this functionality, althouth I'd personally suggest implementing the functionality with thereadOnly
prop as it won't break existing functionality and it makes sense to use areadOnly
prop for this feature.Examples
No response
Application/PAL
QRadar Suite
Business priority
Medium Priority = upcoming release but is not pressing
Available extra resources
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: