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(Picker): fix for data controlled mode #995

Merged
merged 101 commits into from
Feb 1, 2024
Merged

fix(Picker): fix for data controlled mode #995

merged 101 commits into from
Feb 1, 2024

Conversation

VadymBezpalko
Copy link
Contributor

@VadymBezpalko VadymBezpalko commented Feb 1, 2024

Resolves: #992

Description

Adding data-controlled mode: when there is selected prop passed to the Picker component it will track only those indexes as selected and would ignore internal state.

Storybook

https://feature-992--613a8e945a5665003a05113b.chromatic.com

Checklist

Obligatory:

  • Self review (use this as your final check for proposed changes before requesting the review)
  • Add reviewers (livechat/design-system)
  • Add correct label
  • Assign pull request with the correct issue

@VadymBezpalko VadymBezpalko added the bug Something isn't working label Feb 1, 2024
@VadymBezpalko VadymBezpalko added this to the v1.0 milestone Feb 1, 2024
@VadymBezpalko VadymBezpalko self-assigned this Feb 1, 2024
@VadymBezpalko VadymBezpalko marked this pull request as ready for review February 1, 2024 13:27
Copy link

@vladko-uxds vladko-uxds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Base automatically changed from feature/993 to main February 1, 2024 14:23
# Conflicts:
#	packages/react-components/src/components/Picker/Picker.tsx
#	packages/react-components/src/components/Picker/hooks/usePickerItems.ts
@VadymBezpalko VadymBezpalko merged commit 1e6740b into main Feb 1, 2024
5 checks passed
@VadymBezpalko VadymBezpalko deleted the feature/992 branch February 1, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Allow control over Picker's state
3 participants