Skip to content

Commit 3550dfe

Browse files
committed
Merge pull request #13 from omkarv/patch-1
Fixed a bug with if statement
2 parents d9bb5bc + 7d8bbae commit 3550dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

angular-multi-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ angular.module( 'multi-select', ['ng'] ).directive( 'multiSelect' , [ '$sce', '$
444444

445445
if ( e.type === 'click' || e.type === 'touchend' && $scope.scrolled === false ) {
446446
var checkboxes = document.querySelectorAll( '.checkboxLayer' );
447-
if ( e.target.className.indexOf === undefined || e.target.className.indexOf( 'multiSelect' ) {
447+
if ( e.target.className.indexOf === undefined || e.target.className.indexOf( 'multiSelect' )) {
448448
for( i=0; i < checkboxes.length; i++ ) {
449449
checkboxes[i].className = 'multiSelect checkboxLayer hide';
450450
}

0 commit comments

Comments
 (0)