Skip to content

[InputMenu] ability to control behavior of onRemoveTag #4463

@joezak11

Description

@joezak11

Description

Need to have the ability to provide a callback function to onRemoveTag when selecting multiple items to be able to customize its behavior.

Additional context

In my use case for example I have an InputMenu with Multiple selections the items list contains values that fall under multiple categories for example A, B, and C with the ability to search for any of them in the same InputMenu, so the list of items looks something like this:

  • A: A1
  • A: A2
  • B: B5
  • C: C7
    the state is then stored in a pinia store based on the category onSelect, e.g. if (key == "A") store.listA.push(item.value) when I click on the remove tag the v-model value is updated, but I have no idea which category was it from, meaning I will have to check all the items to know which state to update since they are actually separate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestv3#1289

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions