@chakra-ui/popper
Advanced tools
Comparing version 2.3.0 to 2.3.1
# Change Log | ||
## 2.3.1 | ||
### Patch Changes | ||
- [`c3f016149`](https://github.com/chakra-ui/chakra-ui/commit/c3f01614929d2f68a39cf78111d17f4f4c684706) | ||
Thanks [@segunadebayo](https://github.com/segunadebayo)! - Remove default `[]` | ||
value for modifiers and moved it into `createPopper` definition. This allows | ||
memoized modifiers to work correctly in user-land when used with | ||
`useCallback`. | ||
## 2.3.0 | ||
@@ -4,0 +14,0 @@ |
@@ -34,4 +34,3 @@ "use strict"; | ||
enabled = _props$enabled === void 0 ? true : _props$enabled, | ||
_props$modifiers = _props.modifiers, | ||
modifiers = _props$modifiers === void 0 ? [] : _props$modifiers, | ||
modifiers = _props.modifiers, | ||
_props$placement = _props.placement, | ||
@@ -94,3 +93,3 @@ placementProp = _props$placement === void 0 ? "bottom" : _props$placement, | ||
} | ||
}].concat(modifiers), | ||
}].concat(modifiers != null ? modifiers : []), | ||
strategy: strategy | ||
@@ -97,0 +96,0 @@ }); // force update one-time to fix any positioning issues |
@@ -18,3 +18,3 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
enabled = true, | ||
modifiers = [], | ||
modifiers, | ||
placement: placementProp = "bottom", | ||
@@ -70,3 +70,3 @@ strategy = "absolute", | ||
}, // allow users override internal modifiers | ||
...modifiers], | ||
...(modifiers != null ? modifiers : [])], | ||
strategy | ||
@@ -73,0 +73,0 @@ }); // force update one-time to fix any positioning issues |
{ | ||
"name": "@chakra-ui/popper", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "A React component and hooks wrapper for popper.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
119468
1072