Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
michaelmaillot opened this issue Sep 13, 2023 · 2 comments · May be fixed by #1838
Open

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

michaelmaillot opened this issue Sep 13, 2023 · 2 comments · May be fixed by #1838
Assignees
Labels
status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. type:enhancement New feature or enhancement of existing capability

Comments

@michaelmaillot
Copy link
Collaborator

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
@ghost
Copy link

ghost commented Sep 13, 2023

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

@ghost ghost added the Needs: Triage 🔍 label Sep 13, 2023
@michaelmaillot michaelmaillot added help wanted Good First Issue 🏆 type:enhancement New feature or enhancement of existing capability and removed Needs: Triage 🔍 labels Sep 13, 2023
@DevPio
Copy link

DevPio commented Jun 18, 2024

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

@michaelmaillot michaelmaillot added status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. and removed help wanted Good First Issue 🏆 labels Jun 18, 2024
@DevPio DevPio linked a pull request Jun 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants