downshift 5.0.4 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/downshift.cjs.js +2 -3
- package/dist/downshift.esm.js +2 -3
- package/dist/downshift.native.cjs.js +2 -3
- package/dist/downshift.umd.js +2 -3
- package/dist/downshift.umd.js.map +1 -1
- package/dist/downshift.umd.min.js +1 -1
- package/dist/downshift.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/preact/dist/downshift.cjs.js +2 -3
- package/preact/dist/downshift.esm.js +2 -3
- package/preact/dist/downshift.umd.js +2 -3
- package/preact/dist/downshift.umd.js.map +1 -1
- package/preact/dist/downshift.umd.min.js +1 -1
- package/preact/dist/downshift.umd.min.js.map +1 -1
package/dist/downshift.cjs.js
CHANGED
|
@@ -1735,8 +1735,7 @@ function getPropTypesValidator(caller, propTypes) {
|
|
|
1735
1735
|
options = {};
|
|
1736
1736
|
}
|
|
1737
1737
|
|
|
1738
|
-
Object.
|
|
1739
|
-
var key = _ref2[0];
|
|
1738
|
+
Object.keys(propTypes).forEach(function (key) {
|
|
1740
1739
|
PropTypes.checkPropTypes(propTypes, options, key, caller.name);
|
|
1741
1740
|
});
|
|
1742
1741
|
};
|
|
@@ -1770,7 +1769,7 @@ function callOnChangeProps(action, state, newState) {
|
|
|
1770
1769
|
}
|
|
1771
1770
|
});
|
|
1772
1771
|
|
|
1773
|
-
if (props.onStateChange && Object.
|
|
1772
|
+
if (props.onStateChange && Object.keys(changes).length) {
|
|
1774
1773
|
props.onStateChange(_extends({
|
|
1775
1774
|
type: type
|
|
1776
1775
|
}, changes));
|
package/dist/downshift.esm.js
CHANGED
|
@@ -1729,8 +1729,7 @@ function getPropTypesValidator(caller, propTypes) {
|
|
|
1729
1729
|
options = {};
|
|
1730
1730
|
}
|
|
1731
1731
|
|
|
1732
|
-
Object.
|
|
1733
|
-
var key = _ref2[0];
|
|
1732
|
+
Object.keys(propTypes).forEach(function (key) {
|
|
1734
1733
|
PropTypes.checkPropTypes(propTypes, options, key, caller.name);
|
|
1735
1734
|
});
|
|
1736
1735
|
};
|
|
@@ -1764,7 +1763,7 @@ function callOnChangeProps(action, state, newState) {
|
|
|
1764
1763
|
}
|
|
1765
1764
|
});
|
|
1766
1765
|
|
|
1767
|
-
if (props.onStateChange && Object.
|
|
1766
|
+
if (props.onStateChange && Object.keys(changes).length) {
|
|
1768
1767
|
props.onStateChange(_extends({
|
|
1769
1768
|
type: type
|
|
1770
1769
|
}, changes));
|
|
@@ -1668,8 +1668,7 @@ function getPropTypesValidator(caller, propTypes) {
|
|
|
1668
1668
|
options = {};
|
|
1669
1669
|
}
|
|
1670
1670
|
|
|
1671
|
-
Object.
|
|
1672
|
-
var key = _ref2[0];
|
|
1671
|
+
Object.keys(propTypes).forEach(function (key) {
|
|
1673
1672
|
PropTypes.checkPropTypes(propTypes, options, key, caller.name);
|
|
1674
1673
|
});
|
|
1675
1674
|
};
|
|
@@ -1703,7 +1702,7 @@ function callOnChangeProps(action, state, newState) {
|
|
|
1703
1702
|
}
|
|
1704
1703
|
});
|
|
1705
1704
|
|
|
1706
|
-
if (props.onStateChange && Object.
|
|
1705
|
+
if (props.onStateChange && Object.keys(changes).length) {
|
|
1707
1706
|
props.onStateChange(_extends({
|
|
1708
1707
|
type: type
|
|
1709
1708
|
}, changes));
|
package/dist/downshift.umd.js
CHANGED
|
@@ -3235,8 +3235,7 @@
|
|
|
3235
3235
|
options = {};
|
|
3236
3236
|
}
|
|
3237
3237
|
|
|
3238
|
-
Object.
|
|
3239
|
-
var key = _ref2[0];
|
|
3238
|
+
Object.keys(propTypes$1).forEach(function (key) {
|
|
3240
3239
|
propTypes.checkPropTypes(propTypes$1, options, key, caller.name);
|
|
3241
3240
|
});
|
|
3242
3241
|
};
|
|
@@ -3270,7 +3269,7 @@
|
|
|
3270
3269
|
}
|
|
3271
3270
|
});
|
|
3272
3271
|
|
|
3273
|
-
if (props.onStateChange && Object.
|
|
3272
|
+
if (props.onStateChange && Object.keys(changes).length) {
|
|
3274
3273
|
props.onStateChange(_extends({
|
|
3275
3274
|
type: type
|
|
3276
3275
|
}, changes));
|