Closed vrndeva closed 7 years ago
The issue is when I add any person and click on Close after adding the person.
Do you have a repo like a jsfiddle you can share to make it easier to see the issue @vrndeva ?
This isn't an event we currently support... I think you're looking for the event removePersonFromSelectedPeople
that we have on the scope. Refer to the source of the scope's interface for this: https://github.com/ngOfficeUIFabric/ng-officeuifabric/blob/master/src/components/peoplepicker/peoplePickerDirective.ts#L180-L220
This is the sample code: uif-person-close="removeClicked"
On my HTML: <uif-people-picker` uif-people="getUsers" ng-model="Test" uif-type="compact" uif-person-close="removeClicked" uif-selected-person-click="personClicked" data-ng-click="getSelectedGetUsersId(user)" uif-search-delay="300" placeholder="Search for people">
On my Controller: $scope.removeClicked = function () { alert('Remove Clicked'); }
Expected Behavior
Supposed to Call removeClicked event in the controller.
Actual Behavior
Nothing happens