sp-dev-fx-controls-react icon indicating copy to clipboard operation
sp-dev-fx-controls-react copied to clipboard

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

Open michaelmaillot opened this issue 2 years ago • 2 comments

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

michaelmaillot avatar Sep 13 '23 14:09 michaelmaillot

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Sep 13 '23 14:09 ghost

I would like to work on this task, could you assign it to me?

DevPio avatar Jun 18 '24 16:06 DevPio

Linked PR has been merged, it should be available soon in next beta release.

Thanks again for your contribution!

michaelmaillot avatar Aug 12 '24 15:08 michaelmaillot