Skip to content

[Feature Request]: Add support for an onClose callback when the clear ('x') button is clicked in FilterableMultiSelect #20597

@Gururajj77

Description

@Gururajj77

The problem

developers have no way to bifurcate the events when user clears the input or clicks the "x" to deselect the items.

The solution

It would be helpful to have a dedicated callback (e.g. onClose) that triggers specifically when the clear ('x') button in FilterableMultiSelect is clicked. This would allow consumers to handle clear events differently from general selection changes, for example resetting related state or triggering analytics.

Examples

No response

Design impact

No

Documentation impact

  • The website documentation (carbondesignsystem.com)
  • Figma kit documentation
  • Storybook(s) documentation
  • I'm not sure

Package

@carbon/react, @carbon/web-components

Application/PAL

No response

Business priority

Low Priority = release date is not dependent on fix or not upcoming

Available extra resources

No response

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions