@dreamcommerce/aurora 2.23.6-5 → 2.23.6-7

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.
@@ -173,7 +173,7 @@ var Content = function Content(_ref) {
173
173
  React.useEffect(function () {
174
174
  setContentShouldAppearOnTop((dropdownIsOutsideBottomViewport || verticalPosition === 'top' && !dropdownIsOutsideTopViewport) && !fitOnBottomOfScrollableParent);
175
175
  setContentShouldAppearOnBottom(dropdownIsOutsideTopViewport || verticalPosition === 'bottom' && !dropdownIsOutsideBottomViewport);
176
- }, [dropdownIsOutsideBottomViewport, dropdownIsOutsideTopViewport, verticalPosition, fitOnBottomOfScrollableParent]);
176
+ }, [isOpen]);
177
177
  React.useEffect(function () {
178
178
  if (wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current && contentRef.current) {
179
179
  var _getBounding2 = utilities.getBounding(wrapperRef.current),
@@ -278,10 +278,10 @@ var Content = function Content(_ref) {
278
278
  }, [isOpen]);
279
279
  React.useEffect(function () {
280
280
  console.log('fitOnBottomOfScrollableParent', fitOnBottomOfScrollableParent);
281
- }, [fitOnBottomOfScrollableParent]);
281
+ }, [fitOnBottomOfScrollableParent, isOpen]);
282
282
  React.useEffect(function () {
283
283
  console.log('contentShouldAppearOnTop', contentShouldAppearOnTop);
284
- }, [contentShouldAppearOnTop]);
284
+ }, [contentShouldAppearOnTop, isOpen]);
285
285
  return /*#__PURE__*/reactDom.createPortal( /*#__PURE__*/React__default['default'].createElement(reactTransitionGroup.TransitionGroup, {
286
286
  component: null
287
287
  }, isOpen === true ? /*#__PURE__*/React__default['default'].createElement(reactTransitionGroup.CSSTransition, {
@@ -164,7 +164,7 @@ var Content = function Content(_ref) {
164
164
  useEffect(function () {
165
165
  setContentShouldAppearOnTop((dropdownIsOutsideBottomViewport || verticalPosition === 'top' && !dropdownIsOutsideTopViewport) && !fitOnBottomOfScrollableParent);
166
166
  setContentShouldAppearOnBottom(dropdownIsOutsideTopViewport || verticalPosition === 'bottom' && !dropdownIsOutsideBottomViewport);
167
- }, [dropdownIsOutsideBottomViewport, dropdownIsOutsideTopViewport, verticalPosition, fitOnBottomOfScrollableParent]);
167
+ }, [isOpen]);
168
168
  useEffect(function () {
169
169
  if (wrapperRef !== null && wrapperRef !== void 0 && wrapperRef.current && contentRef.current) {
170
170
  var _getBounding2 = getBounding(wrapperRef.current),
@@ -269,10 +269,10 @@ var Content = function Content(_ref) {
269
269
  }, [isOpen]);
270
270
  useEffect(function () {
271
271
  console.log('fitOnBottomOfScrollableParent', fitOnBottomOfScrollableParent);
272
- }, [fitOnBottomOfScrollableParent]);
272
+ }, [fitOnBottomOfScrollableParent, isOpen]);
273
273
  useEffect(function () {
274
274
  console.log('contentShouldAppearOnTop', contentShouldAppearOnTop);
275
- }, [contentShouldAppearOnTop]);
275
+ }, [contentShouldAppearOnTop, isOpen]);
276
276
  return /*#__PURE__*/createPortal( /*#__PURE__*/React.createElement(TransitionGroup, {
277
277
  component: null
278
278
  }, isOpen === true ? /*#__PURE__*/React.createElement(CSSTransition, {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.23.6-5",
5
+ "version": "2.23.6-7",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",