Skip to content

Fluent UI TagPicker: Is anyone able to reproduce the issue or am I making a mistake? #23428

Discussion options

You must be logged in to vote

If you need to control the selected items during runtime, you are using the component in a controlled mode - it is your responsibility to maintain the list of selected items using the selectedItems prop. To remove the items, you should add onChange callback, which is called when the "x" button is clicked and it is passed the updated items - you should store them to your state and re-render the component with the new selectedItems.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kannan-balasubramanian
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants