@clayui/shared
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -6,2 +6,8 @@ # Change Log | ||
## [3.2.2](https://github.com/liferay/clay/compare/@clayui/shared@3.2.1...@clayui/shared@3.2.2) (2020-08-26) | ||
### Bug Fixes | ||
- **@clayui/shared:** fixes side effect of focusing on the first element when the active element does not exist in the scope ([4a136da](https://github.com/liferay/clay/commit/4a136da)) | ||
## [3.2.1](https://github.com/liferay/clay/compare/@clayui/shared@3.2.0...@clayui/shared@3.2.1) (2020-07-28) | ||
@@ -8,0 +14,0 @@ |
@@ -186,4 +186,8 @@ "use strict"; | ||
var lastPosition = elements.length - 1; | ||
var nextElement = null; | ||
var nextElement = null; // Ignore when the active element is not in the scope. | ||
if (position < 0) { | ||
return null; | ||
} | ||
if (backwards) { | ||
@@ -190,0 +194,0 @@ if (position === 0) { |
{ | ||
"name": "@clayui/shared", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "ClayShared component", | ||
@@ -40,3 +40,3 @@ "license": "BSD-3-Clause", | ||
], | ||
"gitHead": "c3d6a4b78259655789b4181fea4579605d718f89" | ||
"gitHead": "c46e7912b15849912013661e9095ea322ee61fec" | ||
} |
@@ -211,2 +211,7 @@ /** | ||
// Ignore when the active element is not in the scope. | ||
if (position < 0) { | ||
return null; | ||
} | ||
if (backwards) { | ||
@@ -213,0 +218,0 @@ if (position === 0) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58564
1414
2749