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 for ModernTaxonomyPicker infinite loop #1342

Merged
merged 1 commit into from
Nov 4, 2022

Conversation

patrikhellgren
Copy link
Contributor

Q A
Bug fix? [X]
New feature? [ ]
New sample? [ ]
Related issues? mentioned in #1306 and #1308

What's in this Pull Request?

This PR fixes an issue introduced in #1261. The initialValues property was never meant to be used as a way to use the control in a controlled way. The control would need to be totally refactored to make it controlled. In that case another property would preferably be introduced, e.g. selectedItems. See for example the FluentUI PeoplePicker that has both a defaultSelectedItems property to use the control in an uncontrolled way and a selectedItems property to use the control in a controlled way.

@AJIXuMuK AJIXuMuK merged commit 012b37b into pnp:dev Nov 4, 2022
@AJIXuMuK
Copy link
Collaborator

AJIXuMuK commented Nov 4, 2022

Thanks @patrikhellgren for the expert look at the component!

@AJIXuMuK AJIXuMuK added this to the 3.12.0 milestone Nov 4, 2022
@patrikhellgren patrikhellgren deleted the fix-initialvalues branch November 9, 2022 17:22
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.

None yet

2 participants