@neovici/cosmoz-bottom-bar
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -0,1 +1,8 @@ | ||
## [4.0.1](https://github.com/neovici/cosmoz-bottom-bar/compare/v4.0.0...v4.0.1) (2020-10-15) | ||
### Bug Fixes | ||
* prevent resize observer loops ([7994a7f](https://github.com/neovici/cosmoz-bottom-bar/commit/7994a7f827e601e6ffbb18c7096e03af224dc098)) | ||
# [4.0.0](https://github.com/neovici/cosmoz-bottom-bar/compare/v3.1.5...v4.0.0) (2020-10-15) | ||
@@ -2,0 +9,0 @@ |
@@ -172,7 +172,9 @@ /* eslint-disable max-lines */ | ||
super(); | ||
this._boundOnResize = this._onResize.bind(this); | ||
this._boundDropdownClosed = this._dropdownClosed.bind(this); | ||
this._boundChildrenUpdated = this._childrenUpdated.bind(this); | ||
this._boundLayoutActions = this._layoutActions.bind(this); | ||
this._resizeObserver = new ResizeObserver(this._boundOnResize); | ||
this._resizeObserver = new ResizeObserver((...args) => { | ||
cancelAnimationFrame(this._resizeId); | ||
this._resizeId = requestAnimationFrame(() => this._onResize(...args)); | ||
}); | ||
} | ||
@@ -200,3 +202,2 @@ | ||
this.removeEventListener('iron-resize', this._boundOnResize); | ||
this.removeEventListener('iron-closed-overlay', this._boundDropdownClosed); | ||
@@ -203,0 +204,0 @@ |
{ | ||
"name": "@neovici/cosmoz-bottom-bar", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "A responsive bottom-bar that can house buttons/actions and a menu for the buttons that won't fit the available width.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
39573
593