Skip to content
This repository was archived by the owner on Dec 16, 2019. It is now read-only.

Commit e0084e7

Browse files
committed
Merge branch 'Fix-1.9.0'
2 parents 53a9dc6 + db79192 commit e0084e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/angularjs-dropdown-multiselect.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,17 +366,17 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
366366
$scope.keyDownLink = function(event) {
367367
var sourceScope = angular.element(event.target).scope();
368368
var nextOption;
369-
var parent = event.srcElement.parentNode;
369+
var parent = event.target.parentNode;
370370
if (!$scope.settings.keyboardControls) {
371371
return;
372372
}
373373
if (event.keyCode === 13 || event.keyCode === 32) { // enter
374374
event.preventDefault();
375375
if (!!sourceScope.option) {
376376
$scope.setSelectedItem($scope.getPropertyForObject(sourceScope.option, $scope.settings.idProp), false, true);
377-
} else if (event.srcElement.id === 'deselectAll') {
377+
} else if (event.target.id === 'deselectAll') {
378378
$scope.deselectAll();
379-
} else if (event.srcElement.id === 'selectAll') {
379+
} else if (event.target.id === 'selectAll') {
380380
$scope.selectAll();
381381
}
382382
} else if (event.keyCode === 38) { // up arrow
@@ -415,7 +415,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
415415
};
416416

417417
$scope.keyDownSearchDefault = function(event) {
418-
var parent = event.srcElement.parentNode.parentNode;
418+
var parent = event.target.parentNode.parentNode;
419419
var nextOption;
420420
if (!$scope.settings.keyboardControls) {
421421
return;

0 commit comments

Comments
 (0)