People picker unable to select multiple persons without leaving
Hi all,
It is not possible to select multiple person without leaving the field first (click outside of field). Do you have any idea or workaround solution for this issue?
Thank in advance, Toan
I have check the source code in BasePicker.tsx and realize that onSuggestionClick we force close suggestion list:
@autobind
protected onSuggestionClick(ev: React.MouseEvent
@betrue-final-final Can you advise if this is something we want to add?
@nguyentoantuit Do you mean that you want to allow for multiple selections while suggestions is open? I just want to make sure that there isn't a bug that prevents you from selecting more than one person in general in the picker.
@joschect I mean that the suggestions is only closed if click to next elements or another area. Currently, the suggestion list is closed immediately when I select a person. If I want to select multiple persons I need to follow these steps:
- Click on people picker
- Suggestion list is opened, select a person
- Suggestion list is closed immediately, the focus is still in people picker
- To make the suggestion open again we need to
4.1. Either type some text, the suggestions will be shown again. But you have to type correct name at least of a person if not the suggestions will show nothing (No results found). In other words, I need to remember the name of users
4. 2. Or lose focus on people picker component by click to another field, or other areas, and then click back on people picker to show suggestion list again.
It is quite annoying to make suggestion list show up again.
The current behavior is consistent with other people picking controls such as in Outlook.
What you're suggesting is a new feature more like the experience when you click the "To" button in Outlook.
The people picker is meant to be a lighter experience in the midst of complex UX.
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!