Skip to content

Add handleChipRemove for all chip samples#980

Merged
ddaribo merged 2 commits into
vnextfrom
mkirkova/refactor-chip-samples
Dec 2, 2025
Merged

Add handleChipRemove for all chip samples#980
ddaribo merged 2 commits into
vnextfrom
mkirkova/refactor-chip-samples

Conversation

@MonikaKirkova
Copy link
Copy Markdown
Contributor

Closes #979

Copy link
Copy Markdown

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 adds handleChipRemove event handlers to all chip sample components to properly handle the removal of chips when users click the remove button. This ensures chips are actually removed from the DOM when the remove icon is clicked.

Key Changes:

  • Added handleChipRemove method to five chip sample components
  • Connected the handlers to onRemove props on all removable IgrChip instances

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
samples/inputs/chip/variants/src/index.tsx Added chip removal handler for variant chips (primary, info, success, warning, danger)
samples/inputs/chip/styling/src/index.tsx Added chip removal handler for the styled chip sample
samples/inputs/chip/size/src/index.tsx Added chip removal handler for size variant chips (small, medium, large)
samples/inputs/chip/overview/src/index.tsx Added chip removal handler for the basic chip overview sample
samples/inputs/chip/multiple/src/index.tsx Added chip removal handler for the multiple chips sample with custom icons

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread samples/inputs/chip/variants/src/index.tsx Outdated
Comment thread samples/inputs/chip/styling/src/index.tsx Outdated
Comment thread samples/inputs/chip/size/src/index.tsx Outdated
Comment thread samples/inputs/chip/overview/src/index.tsx Outdated
Comment thread samples/inputs/chip/multiple/src/index.tsx Outdated
Copy link
Copy Markdown

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

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MonikaKirkova MonikaKirkova requested a review from ddaribo December 2, 2025 13:37
@ddaribo ddaribo added status: in-test PR ready for testing and removed awaiting-test labels Dec 2, 2025
@ddaribo ddaribo added status: verified The PR is tested and ready for a merge and removed status: in-test PR ready for testing labels Dec 2, 2025
@ddaribo ddaribo merged commit 0a4b89a into vnext Dec 2, 2025
11 checks passed
@ddaribo ddaribo deleted the mkirkova/refactor-chip-samples branch December 2, 2025 15:07
HUSSAR-mtrela added a commit that referenced this pull request Dec 15, 2025
* fix(text-area): add gap to resize sample (#971)

* fix(calendar-formatting): set radio value to state (#977)

* Add handleChipRemove for all chip samples (#980)

* fix(chip): add handleChipRemove for all chip samples

* chore(chip): apply review suggestions

* Adding changes from build igniteui-xplat-examples-output+PRs_2025.12.5.2

* CDN update (#986)

* cdn update

* cdn update

* cdn update

* cdn path css

* fix names

* cdn gen data

* Update index.tsx

* cdn path to images

* fixed names

* Adding changes from build igniteui-xplat-examples-output+PRs_2025.12.5.3 (#987)

Co-authored-by: tfsbuild <tfsbuild@infragistics.com>

* CDN improvements (#988)

* simplified data lite source

* fix igniteui-grid-lite package

* fixed men/women to CDN images

* fix /browsers/ig.png

* update performance sample

* fixed /img/avatars/

* cdn readme images

* CDN improvements (#989)

* sb CDN

* Update index.tsx

* 19.3.1-beta.0

19.3.1-beta.0

* mdd-update-19.3.1 (#991)

mdd-update-19.3.1

* Update package-lock.json

---------

Co-authored-by: Riva Ivanova <49126110+RivaIvanova@users.noreply.github.com>
Co-authored-by: Bozhidara Pachilova <35433937+ddaribo@users.noreply.github.com>
Co-authored-by: MonikaKirkova <47036441+MonikaKirkova@users.noreply.github.com>
Co-authored-by: tfsbuild <tfsbuild@infragistics.com>
Co-authored-by: Deyan Kamburov <dkamburov@users.noreply.github.com>
Co-authored-by: azure-pipelines[bot] <36771401+azure-pipelines[bot]@users.noreply.github.com>
Co-authored-by: mddifilippo89 <mdifilippo@infragistics.com>
Co-authored-by: IGvaleries <vsuszynski@infragistics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: verified The PR is tested and ready for a merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IgrChip component- removing the chip is not working

3 participants