microsoft / powercat-creator-kit

This toolkit helps create well-designed Power App experiences on the web & mobile. It contains a component library; PCF controls and other utilities that increase developer productivity.
MIT License
321 stars 53 forks source link

[BUG]: TagList doesn't change selected key #353

Open JamesSnaps opened 1 year ago

JamesSnaps commented 1 year ago

Describe the bug The 'SelectedKey' property of TagList does not update when you select different tags.

To Reproduce Steps to reproduce the behavior:

  1. Add the TagList and use the default Items table as provided in the guide.
  2. Create a label to view the 'selectedKey' output property.
  3. Select different tags

Expected behavior The 'selectedkey' property should update with the currently selected key, as it does in other similar components

Additional context It doesn't appear the tags have any connection to the 'onselect' or 'onchange' properties. If you try a simple notification in 'onselect', nothing happens at all.

AB#971

yaseralhosani commented 1 year ago

I have a comment regarding the tag list control you mentioned. I followed @scottdurow's tutorial and used a collection to add and remove tags. However, there is an issue when removing a tag. According to our business requirements, only one tag list can add/remove tags. The problem is that after removing a tag, the tag control still displays the last key instead of being blank as it should be, I meant (taglist.TagKey).