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
[Feature Request] Combobox: Emit an event on item creation #5682
Comments
Duplicate of #4054 |
I'm not sure this is a duplicate as I'm not interested in getting notified when a item is selected or deselected, I only want to get notified when a new item is created. I think this is only valid with combobox. The use case would be to save and persist this new item so it can be reused in the list of the combobox. I've committed a simple fix which seems to work. |
I think if we're adding the other two might as well have this too, although the workaround is much simpler than diffing the items like you need for autocomplete. |
This featured (with @totakoko fix) proved very useful... |
events emit when an item enters or leaves the selection resolves #5682
events emit when an item enters or leaves the selection resolves #5682
events emit when an item enters or leaves the selection resolves #5682
events emit when an item enters or leaves the selection resolves #5682
Duplicate of #5682? |
Problem to solve
When using a Combobox with multiple values, it is currently not possible to know when a new item is created (that is an item not in the list).
The only way to know this information would be to compute the difference between the selected items and the whole list.
Proposed solution
The component could emit a "new-item" event when a new item gets created.
The text was updated successfully, but these errors were encountered: