Skip to content

Feat/add right icon multiselection autosuggest#2959

Merged
beatrizip merged 7 commits intomasterfrom
feat/add-right-icon-multiselection-autosuggest
Jan 12, 2026
Merged

Feat/add right icon multiselection autosuggest#2959
beatrizip merged 7 commits intomasterfrom
feat/add-right-icon-multiselection-autosuggest

Conversation

@beatrizip
Copy link
Collaborator

molecule/autosuggest

TASK:

Description, Motivation and Context

This PR adds support for rightIcon and onClickRightIcon props to the multiselection mode of the MoleculeAutosuggest component.

Changes:

  • Added rightIcon prop to display a custom icon on the right side of the multiselection input
  • Added onClickRightIcon callback prop to handle click events on the right icon
  • Implemented handleRightClick handler that passes event and current value to the callback
  • Added demo example showing the rightIcon with interactive onClick handler
  • Updated README documentation with usage examples for the new props
  • Added tests to verify rightIcon rendering and onClick behavior in multiselection mode

Motivation:
This enhancement provides more flexibility for multiselection inputs, allowing developers to add custom actions via a right icon (e.g.,
search, submit, info tooltips) similar to what's already available in single selection mode.

Types of changes

  • 🪲 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 🧾 Documentation
  • 📷 Demo
  • 🧪 Test
  • 🧠 Refactor
  • 💄 Styles
  • 🛠️ Tool

Screenshots - Animations

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

STATEMENTS BRANCHES FUNCTIONS LINES
≍ 0.15↑ ≍ 0.19↑ ≍ 0.33↑ ≍ 0.33↑
% 76.54 63.59 68.15 78.08
ABS 3488 / 4557 2117 / 3329 685 / 1005 3307 / 4235

@beatrizip beatrizip merged commit 46296a0 into master Jan 12, 2026
7 checks passed
@beatrizip beatrizip deleted the feat/add-right-icon-multiselection-autosuggest branch January 12, 2026 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants