You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
Noticed that ui-select with multiple attribute doesn't fire any callback when a tag is clicked from the matches list. This hinders the user to access the selected/active tag value when clicking on it.
After digging further found that the only way to access the selected tag is $select.selected[$selectMultiple.activeMatchIndex]
The value add of exposing the above tag via a callback is,
If the choices object has a property that is too big to read and if we want to display the property value on click of the tag
The user wants to remove the tag on clicking it, this comes handy.
I would like to contribute on the above by allowing the user to register a callback to be fired with the tag value and the $selectMultiple object reference when it is clicked.
Something like ng-click="selectMultiple.activeMatchIndex = $index; $select.tagClicked($selectMultiple, $item);"
Hello,
Noticed that ui-select with multiple attribute doesn't fire any callback when a tag is clicked from the matches list. This hinders the user to access the selected/active tag value when clicking on it.
After digging further found that the only way to access the selected tag is
$select.selected[$selectMultiple.activeMatchIndex]
The value add of exposing the above tag via a callback is,
I would like to contribute on the above by allowing the user to register a callback to be fired with the tag value and the
$selectMultiple
object reference when it is clicked.Something like
ng-click="selectMultiple.activeMatchIndex = $index; $select.tagClicked($selectMultiple, $item);"
UI-Select version: 0.19.3
Angular JS version: 1.2.8
Created a simple plunker demonstrating the above.
The text was updated successfully, but these errors were encountered: