react-components
react-components copied to clipboard
feat(MultiSelect): Make sorting optional
Done
- Add
sortedAlphabetically?: boolean = truetoMultiSelect, which determines whether to sort the items by name. - Add
sortedBySelection?: boolean = truetoMultiSelect, which determines whether to sort selected items first.
QA
Storybook
To see rendered examples of all react-components, run:
yarn start
QA in your project
from react-components run:
yarn build
npm pack
Install the resulting tarball in your project with:
yarn add <path-to-tarball>
QA steps
- Ensure that
MultiSelects without the new fields have not changed their sorting. - Ensure that
MultiSelects withsortedAlphabetically={false}do not sort their items alphabetically. - Ensure that
MultiSelects withsortedBySelection={false}do not sort selected items first.
Percy steps
No visual changes expected.
:tada: This PR is included in version 2.6.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket: