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

Commit 0eae6e5

Browse files
committed
Merge branch 'Fix-1.7.0' into Fix-1.8.0
2 parents 7ad2d40 + c75566d commit 0eae6e5

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
@@ -345,17 +345,17 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
345345
$scope.keyDownLink = function(event) {
346346
var sourceScope = angular.element(event.target).scope();
347347
var nextOption;
348-
var parent = event.srcElement.parentNode;
348+
var parent = event.target.parentNode;
349349
if (!$scope.settings.keyboardControls) {
350350
return;
351351
}
352352
if (event.keyCode === 13 || event.keyCode === 32) { // enter
353353
event.preventDefault();
354354
if (!!sourceScope.option) {
355355
$scope.setSelectedItem($scope.getPropertyForObject(sourceScope.option, $scope.settings.idProp), false, true);
356-
} else if (event.srcElement.id === 'deselectAll') {
356+
} else if (event.target.id === 'deselectAll') {
357357
$scope.deselectAll();
358-
} else if (event.srcElement.id === 'selectAll') {
358+
} else if (event.target.id === 'selectAll') {
359359
$scope.selectAll();
360360
}
361361
} else if (event.keyCode === 38) { // up arrow
@@ -394,7 +394,7 @@ directiveModule.directive('ngDropdownMultiselect', ['$filter', '$document', '$co
394394
};
395395

396396
$scope.keyDownSearchDefault = function(event) {
397-
var parent = event.srcElement.parentNode.parentNode;
397+
var parent = event.target.parentNode.parentNode;
398398
var nextOption;
399399
if (!$scope.settings.keyboardControls) {
400400
return;

0 commit comments

Comments
 (0)