Skip to content

PeoplePicker - Provide a method / prop to Clear the content properly #1643

@michaelmaillot

Description

@michaelmaillot

Category

[x] Enhancement

[ ] Bug

[ ] Question

Version

Please specify what version of the library you are using: [3.15.0]

Expected / Desired Behavior / Question

When the control contains users / groups and we want it to be cleared programmatically, there should be a method / prop to do so.

Observed Behavior

Raised in #1569, the only way to clear the picker is through a ref.onChange event trigger with an empty array, which could be improved.

Steps to Reproduce

  • Add the PeoplePicker control in a React component
  • Add entries within the control
  • Try to clear its content through code

Metadata

Metadata

Assignees

Labels

status:fixed-next-dropIssue will be fixed in upcoming release.type:enhancementNew feature or enhancement of existing capability

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions