fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

People picker unable to select multiple persons without leaving

Open nguyentoantuit opened this issue 8 years ago • 6 comments

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

nguyentoantuit avatar Jun 08 '18 10:06 nguyentoantuit

I have check the source code in BasePicker.tsx and realize that onSuggestionClick we force close suggestion list: @autobind protected onSuggestionClick(ev: React.MouseEvent, item: any, index: number) { this.addItemByIndex(index); this.setState({ suggestionsVisible: false }); } Can we provide a prop to keep the suggestion list still open when an item is selected?

nguyentoantuit avatar Jun 11 '18 03:06 nguyentoantuit

@betrue-final-final Can you advise if this is something we want to add?

michaelangotti avatar Jun 14 '18 17:06 michaelangotti

@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 avatar Jun 14 '18 18:06 joschect

@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:

  1. Click on people picker
  2. Suggestion list is opened, select a person
  3. Suggestion list is closed immediately, the focus is still in people picker
  4. 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 image 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.

nguyentoantuit avatar Jun 15 '18 04:06 nguyentoantuit

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.

betrue-final-final avatar Jun 15 '18 13:06 betrue-final-final

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!

msft-github-bot avatar Dec 31 '18 20:12 msft-github-bot