Christophe
Christophe

Reputation: 28134

Fluent UI PeoplePicker onChange

I am trying to use the PeoplePicker control on Fluent UI:

https://developer.microsoft.com/en-us/fluentui#/controls/web/peoplepicker

How can I trigger an action when a selection is made? I don't see any onChange method or similar exposed in the API.

Upvotes: 0

Views: 4338

Answers (1)

Christophe
Christophe

Reputation: 28134

After looking at class inheritance on Fluent UI, I found out that the people picker was built on top of a "base picker".

The base picker page has more details on event handlers, including for example an "onItemSelected" method.

Upvotes: 1

Related Questions