Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 7fdb964

Browse files
v1.7.3
1 parent cde950b commit 7fdb964

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

angular-aria.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license AngularJS v1.7.2
2+
* @license AngularJS v1.7.3
33
* (c) 2010-2018 Google, Inc. http://angularjs.org
44
* License: MIT
55
*/
@@ -63,7 +63,7 @@
6363
var ARIA_DISABLE_ATTR = 'ngAriaDisable';
6464

6565
var ngAriaModule = angular.module('ngAria', ['ng']).
66-
info({ angularVersion: '1.7.2' }).
66+
info({ angularVersion: '1.7.3' }).
6767
provider('$aria', $AriaProvider);
6868

6969
/**
@@ -392,7 +392,10 @@ ngAriaModule.directive('ngShow', ['$aria', function($aria) {
392392
if ($aria.config('bindKeydown') && !attr.ngKeydown && !attr.ngKeypress && !attr.ngKeyup) {
393393
elem.on('keydown', function(event) {
394394
var keyCode = event.which || event.keyCode;
395-
if (keyCode === 32 || keyCode === 13) {
395+
396+
if (keyCode === 13 || keyCode === 32) {
397+
// Prevent the default browser behavior (e.g. scrolling when pressing spacebar).
398+
event.preventDefault();
396399
scope.$apply(callback);
397400
}
398401

angular-aria.min.js

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)