Skip to content

Commit 2730c2b

Browse files
author
isteven
committed
fixed on-item-click callback bug
1 parent 95aa126 commit 2730c2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

angular-multi-select.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
395395
}
396396
}
397397

398-
$scope.clickedItem = angular.copy( item );
398+
$scope.clickedItem = angular.copy( item );
399399

400400
// We update the index here
401401
prevTabIndex = $scope.tabIndex;
@@ -823,11 +823,11 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
823823
$scope.refreshSelectedItems();
824824
$scope.refreshOutputModel();
825825
$scope.refreshButton();
826-
if ( $scope.clickedItem !== null ) {
826+
if ( $scope.clickedItem !== null ) {
827827
$timeout( function() {
828828
$scope.onItemClick( { data: $scope.clickedItem } );
829-
}, 0 );
830-
$scope.clickedItem = null;
829+
$scope.clickedItem = null;
830+
}, 0 );
831831
}
832832
}
833833
}, true);

0 commit comments

Comments
 (0)