@enact/spotlight
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -5,2 +5,8 @@ # Change Log | ||
## [1.8.0] - 2017-09-07 | ||
### Fixed | ||
- `spotlight/Spottable` to clean up internal spotted state when blurred within `onSpotlightDisappear` handler | ||
## [1.7.0] - 2017-08-23 | ||
@@ -10,3 +16,3 @@ | ||
- `spotlight/SpotlightContainerDecorator` config option `continue5WayHold` to support moving focus to the next spottable element on 5-way hold key. | ||
- `spotlight/SpotlightContainerDecorator` config option `continue5WayHold` to support moving focus to the next spottable element on 5-way hold key | ||
- `spotlight/Spottable` ability to restore focus when an initially disabled component becomes enabled | ||
@@ -13,0 +19,0 @@ |
{ | ||
"name": "@enact/spotlight", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "A focus management library", | ||
@@ -24,3 +24,3 @@ "main": "src/spotlight.js", | ||
"dependencies": { | ||
"@enact/core": "^1.7.0", | ||
"@enact/core": "^1.8.0", | ||
"prop-types": "~15.5.10", | ||
@@ -27,0 +27,0 @@ "ramda": "~0.24.1", |
@@ -262,7 +262,2 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
if (spottable) { | ||
rest.onBlur = this.handleBlur; | ||
rest.onFocus = this.handleFocus; | ||
rest.onKeyDown = this.handleKeyDown; | ||
rest.onKeyUp = this.handleKeyUp; | ||
if (rest.className) { | ||
@@ -276,2 +271,6 @@ rest.className += ' ' + spottableClass; | ||
return React.createElement(Wrapped, _extends({}, rest, { | ||
onBlur: this.handleBlur, | ||
onFocus: this.handleFocus, | ||
onKeyDown: this.handleKeyDown, | ||
onKeyUp: this.handleKeyUp, | ||
disabled: disabled, | ||
@@ -278,0 +277,0 @@ tabIndex: tabIndex |
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
193434
Updated@enact/core@^1.8.0