Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evantrimboli opened this issue Oct 3, 2024 · 3 comments
Open

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

evantrimboli opened this issue Oct 3, 2024 · 3 comments
Labels
P3 This issue has low priority

Comments

@evantrimboli
Copy link
Contributor

evantrimboli commented Oct 3, 2024

Description

Possibly related to: #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
Copy link
Collaborator

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

@evantrimboli
Copy link
Contributor Author

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.

@waterplea
Copy link
Collaborator

If you are using tui-data-list then you have all the button elements exposed to you so you can just listen to (click) on them. As for enter on the field — we will keep that in mind when refactoring the controls.

@waterplea waterplea added P3 This issue has low priority and removed state: need triage labels Oct 4, 2024
@waterplea waterplea removed the feature label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P3 This issue has low priority
Development

No branches or pull requests

2 participants