Comparing version 1.5.0 to 1.6.0
@@ -7,2 +7,8 @@ # Changelog | ||
## [1.6.0] - 2018-07-16 | ||
### Changed | ||
- Do not write to dom styles directly | ||
### Removed | ||
- Remove redundant inline css `transition: top 100ms;` | ||
## [1.5.0] - 2018-07-16 | ||
@@ -14,2 +20,4 @@ ### changed | ||
- Set component to `unfixed` when it has reached the top of the scrollable area | ||
### Removed | ||
- Remove redundant inline css `display: block; width: 100%;` | ||
@@ -16,0 +24,0 @@ ## [1.4.6] - 2018-07-02 |
@@ -79,3 +79,2 @@ "use strict"; | ||
_this.setState({ scroll: scroll, top: top }); | ||
ref.style.top = top.toString(); | ||
}; | ||
@@ -143,3 +142,3 @@ _this.handleScroll = function () { return window.requestAnimationFrame(_this.animateTop); }; | ||
position: 'sticky', | ||
transition: 'top 100ms' | ||
top: this.state.top + 'px' | ||
}; | ||
@@ -146,0 +145,0 @@ return (React.createElement("nav", __assign({ ref: this.internalRef, style: style }, props), children)); |
{ | ||
"name": "app-bar", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "An app bar for React that stays out of your way", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
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
17325
176