taiga-family / taiga-ui

Angular UI Kit and components library for awesome people
https://taiga-ui.dev
Apache License 2.0
3.21k stars 439 forks source link

🚀 - Trigger an event on select for Combo/MultiSelect #9325

Open evantrimboli opened 1 day ago

evantrimboli commented 1 day ago

Description

Possibly related to: https://github.com/taiga-family/taiga-ui/issues/9304

It would be nice to have a select event when an option is chosen by the user via keyboard/mouse.

This would differ from the value change because the event would only be triggered by user interaction, not a programmatic value being set.

waterplea commented 17 hours ago

There's (itemClick) event on tui-data-list-wrapper, is that what you are looking for?

evantrimboli commented 3 hours ago

Something similar to that yeah. But it doesn't handle a selection via the enter key on the field. Also would be nice if the field would handle it without needing to know the underlying implementation. In this case I'm using tui-data-list and it doesn't appear to expose itemClick.