-
Notifications
You must be signed in to change notification settings - Fork 379
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
ModernTaxonomyPicker - allowMultipleSelections = false, but panel allows multiple items to be selected #1847
Comments
Thank you for submitting your first issue to this project. |
Hello @roldengarm, Did you try checking with the latest version v3.19? Also, as per the documentation, you can try like this incase if you dont want multi-selection I have tried like below, and it works fine
I have removed If I have your approach, I am able to select multiple values in the panel, which is not correct. I will come up with a solution for this. Mean while you can remove the property Thanks, |
@roldengarm I have exactly the same problem. |
@ludes2 no solution unfortunately. |
I'm facing the same issue and tried the solution proposed by @NishkalankBezawada, Has anyone else found an alternative solution that works? |
Hey @lucadercoli, couldn't get you clearly, did my solution work? //Nishkalank |
Hi @NishkalankBezawada, thank you for your suggestion. Unfortunately, after trying your proposed solution, the bug is still present. I also tried the beta version, but it didn't resolve the issue either. Could you suggest any other possible fixes? Has anyone else found an alternative solution that worked? |
Category
[ ] Enhancement
[X] Bug
[ ] Question
Version
Please specify what version of the library you are using: 3.18.1
If you are not using the latest release, please update and see if the issue is resolved before submitting an issue.
Expected / Desired Behavior / Question
When allowMultipleSelections is false, I shouldn't be able to select more than one item in the tree view.
Observed Behavior
Multiple items can be selected in the tree view in the panel. It still only allows selecting one item in the picker itself, but the treeview should not allow multiple selections.
Steps to Reproduce
Then, just click the Label button to open the panel and try to select more than one.
A change in
onPickerChange
is most likely required to only select one item whenallowMultipleSelections
is false: https://github.com/pnp/sp-dev-fx-controls-react/blob/master/src/controls/modernTaxonomyPicker/taxonomyPanelContents/TaxonomyPanelContents.tsx#L66The text was updated successfully, but these errors were encountered: