Closed ITAndy23 closed 5 months ago
Thank you @ITAndy23 for this issue.
Using the selected-person template
`
would solve this partially, with the exception of the remove icon. Two ways I think of solving this would be to include a
hide-selected-people` property or to include the button in the renderSelectedPerson method such that the selected-person template hides the remove icon too.
Let's go with adding a hide-selected-people
attribute. We will need to validate this UI change with our accessibility team.
@ITAndy23 this change will only be available in version 3.x of MGT and you'll need to update to use this in your project.
Oh @ITAndy23 I should call out that when using the React wrapper there is no opportunity to override the render methods. Doing this requires that you create your own web component where the component class extends from the MgtPeoplePickerClass. The React components are smart wrapper controls that render the web components and pass data to them. The React components use encapsulation and not inheritance.
@gavinbarron Do you have any examples for extending from the MgtPeoplePickerClass for this use case? Or will this be too much work?
Not that class specifically, but there are examples for mgt-person and mgt-agenda
At the moment, this is not something we're likely to prioritize. That being said, the Graph Toolkit is an open source project and we'll be happy to support and review if you want to contribute to its codebase! In the meantime, we will be closing this issue. Thanks!
Discussed in https://github.com/microsoftgraph/microsoft-graph-toolkit/discussions/2682