Skip to content

docs(ChipList): Enhance Events example #2963

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

Merged
merged 1 commit into from
May 19, 2025
Merged

Conversation

dimodi
Copy link
Contributor

@dimodi dimodi commented May 19, 2025

OnRemove event handler does not do anything. Triggered by 1687649.

Simplify example by removing optional custom model property names.

@dimodi dimodi requested a review from a team as a code owner May 19, 2025 05:52
@dimodi dimodi added the merge-to-production Use this label to get a comment to choose whether to merge the PR to production label May 19, 2025
@dimodi dimodi requested a review from a team as a code owner May 19, 2025 05:52
Copy link
Contributor

Hello @dimodi,

Check the below option if you would like to automatically generate PR to production. The automation uses the branch for the cherry-pick, and then will delete the branch. Please, do not delete it manually.

  • create PR to production

@dimodi dimodi requested review from Copilot and a team and removed request for a team May 19, 2025 05:52
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the ChipList events example to use the default model property names and make the OnRemove handler actually remove items from the source list.

  • Removed explicit TextField, IconField, and RemovableField attributes to rely on the component’s defaults.
  • Enhanced the OnChipRemove handler: switched to direct cast, clarified the IsCancelled comment, and called ChipListSource.Remove.
  • Renamed ChipModel properties to Text, Icon, and Removable to match the defaults.
Comments suppressed due to low confidence (1)

components/chiplist/events.md:50

  • [nitpick] Since IsCancelled already defaults to false, you can remove this explicit assignment and streamline the comment to only explain setting it to true when cancellation is needed.
args.IsCancelled = false; // false by default. Set to true to cancel chip removal.

@dimodi dimodi merged commit e69b1df into master May 19, 2025
1 check passed
Copy link
Contributor

Here you are the link to your PR to production: 2964

@github-actions github-actions bot deleted the dimodi-patch-1-chiplist branch May 19, 2025 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-to-production Use this label to get a comment to choose whether to merge the PR to production
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants