arui-feather
Advanced tools
Comparing version 9.10.1 to 9.10.2
@@ -0,1 +1,11 @@ | ||
<a name="9.10.2"></a> | ||
## [9.10.2](https://github.com/alfa-laboratory/arui-feather/compare/v9.10.1...v9.10.2) (2017-09-25) | ||
### Bug Fixes | ||
* **select:** fix popup breaking on window resize ([#263](https://github.com/alfa-laboratory/arui-feather/issues/263)) ([1f59698](https://github.com/alfa-laboratory/arui-feather/commit/1f59698)) | ||
<a name="9.10.1"></a> | ||
@@ -2,0 +12,0 @@ ## [9.10.1](https://github.com/alfa-laboratory/arui-feather/compare/v9.10.0...v9.10.1) (2017-09-19) |
{ | ||
"name": "arui-feather", | ||
"version": "9.10.1", | ||
"version": "9.10.2", | ||
"description": "Alfa-Bank UI lightweight library", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -152,3 +152,3 @@ 'use strict'; | ||
} | ||
}, _this.anchor = null, _this.clickEventBindTimeout = null, _this.domElemPopup = null, _this.domElemPopupContent = null, _this.isWindowClickBinded = false, _this.position = null, _this.handleResizeWindow = (0, _lodash2.default)(function () { | ||
}, _this.anchor = null, _this.clickEventBindTimeout = null, _this.domElemPopup = null, _this.domElemPopupContent = null, _this.isWindowClickBinded = false, _this.position = null, _this.handleWindowResize = (0, _lodash2.default)(function () { | ||
if (_this.isPropsToPositionCorrect()) { | ||
@@ -180,3 +180,3 @@ _this.redraw(); | ||
window.addEventListener('resize', this.handleResizeWindow); | ||
window.addEventListener('resize', this.handleWindowResize); | ||
} | ||
@@ -222,3 +222,5 @@ }, { | ||
window.removeEventListener('resize', this.handleResizeWindow); | ||
// Cancel debouncing to avoid `this.setState()` invocation in unmounted component state | ||
this.handleWindowResize.cancel(); | ||
window.removeEventListener('resize', this.handleWindowResize); | ||
} | ||
@@ -225,0 +227,0 @@ }, { |
@@ -685,4 +685,11 @@ 'use strict'; | ||
value: function handleMqMatchChange(isMatched) { | ||
var _this10 = this; | ||
this.setState({ | ||
isMobile: isMatched | ||
}, function () { | ||
if (_this10.popup) { | ||
_this10.setPopupTarget(); | ||
_this10.updatePopupStyles(); | ||
} | ||
}); | ||
@@ -707,3 +714,3 @@ } | ||
value: function focus() { | ||
var _this10 = this; | ||
var _this11 = this; | ||
@@ -718,3 +725,3 @@ if (this.nativeSelect) { | ||
}, function () { | ||
_this10.focusOnMenu(); | ||
_this11.focusOnMenu(); | ||
}); | ||
@@ -796,3 +803,3 @@ } | ||
value: function toggleOpened() { | ||
var _this11 = this; | ||
var _this12 = this; | ||
@@ -804,4 +811,4 @@ var newOpenedState = !this.getOpened(); | ||
}, function () { | ||
if (newOpenedState && _this11.menu) { | ||
_this11.focusOnMenu(); | ||
if (newOpenedState && _this12.menu) { | ||
_this12.focusOnMenu(); | ||
} | ||
@@ -830,3 +837,3 @@ }); | ||
value: function getCheckedItems(options) { | ||
var _this12 = this; | ||
var _this13 = this; | ||
@@ -838,3 +845,3 @@ var value = this.getValue(); | ||
if (option.type === 'group' && !!option.content) { | ||
var findInGroup = _this12.getCheckedItems(option.content); | ||
var findInGroup = _this13.getCheckedItems(option.content); | ||
result = result.concat(findInGroup); | ||
@@ -841,0 +848,0 @@ } else if (value.indexOf(option.value) !== -1) { |
Sorry, the diff of this file is not supported yet
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
3329572
33952