trimble-oss / modus-web-components

This library provides Modus components as web components - reusable, encapsulated UI elements that are framework agnostic (can be implemented in any site).
https://modus-web-components.trimble.com/
MIT License
34 stars 70 forks source link

Autocomplete: Introduce an option to clear the chips in multiselect mode #2719

Open anwishaZ opened 1 month ago

anwishaZ commented 1 month ago

Prerequisites

Proposal

The user is unable to reset(clearing) the chips from the autocomplete as we are not able to access the selected chips from the dom.

Motivation and context

Our usecase needs a functionality where on click of reset button present in form ,all the chips should be cleared and for doing the same we need to access the chips array(selected items) and invoke a function from where we can clear it out .

What is the issue regarding ?

@trimble-oss/modus-web-components

Priority

Medium

What product/project are you using Modus Components for ?

TRIMBLE FORESTRY

What is your team/division name ?

Central Product development

Are you willing to contribute ?

None

Are you using Modus Web Components in production ?

Yes

github-actions[bot] commented 1 month ago

Hello @anwishaZ! Thanks for opening an issue. The Modus core team will get back to you soon (usually within 24-hours) and provide guidance on how to proceed. Contributors are welcome to participate in the discussion and provide their input on how to best solve the issue, and even submit a PR if they want to.

Please wait until the issue is ready to be worked on before submitting a PR, or you can reach out to the core team if it is time bound. For trivial things, or bugs that don't change the expected behaviors and UI, you can go ahead and make a PR.