@festo-ui/react 5.1.0-dev.182 → 5.1.0-dev.188

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.
@@ -15,10 +15,8 @@ const ModalBase = /*#__PURE__*/forwardRef((_ref, ref) => {
15
15
  children
16
16
  } = _ref;
17
17
  const backdropRef = useRef(null);
18
- const modalRef = useRef(null);
19
18
  const divRef = useRef(null);
20
- const combinedRef = useForkRef(ref, modalRef);
21
- const allRefs = useForkRef(combinedRef, divRef);
19
+ const allRefs = useForkRef(ref, divRef);
22
20
  const container = divRef?.current?.ownerDocument || document;
23
21
  useOnClickOutside(divRef, () => onClose?.());
24
22
  useEffect(() => {
@@ -47,7 +45,7 @@ const ModalBase = /*#__PURE__*/forwardRef((_ref, ref) => {
47
45
  className: "fr-modal-backdrop fwe-modal-backdrop"
48
46
  })
49
47
  }), /*#__PURE__*/_jsx(CSSTransition, {
50
- ref: modalRef,
48
+ nodeRef: divRef,
51
49
  unmountOnExit: true,
52
50
  classNames: "fr-modal",
53
51
  appear: true,
@@ -20,10 +20,8 @@ const ModalBase = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
20
20
  children
21
21
  } = _ref;
22
22
  const backdropRef = (0, _react.useRef)(null);
23
- const modalRef = (0, _react.useRef)(null);
24
23
  const divRef = (0, _react.useRef)(null);
25
- const combinedRef = (0, _useForkRef.default)(ref, modalRef);
26
- const allRefs = (0, _useForkRef.default)(combinedRef, divRef);
24
+ const allRefs = (0, _useForkRef.default)(ref, divRef);
27
25
  const container = divRef?.current?.ownerDocument || document;
28
26
  (0, _useOnClickOutside.default)(divRef, () => onClose?.());
29
27
  (0, _react.useEffect)(() => {
@@ -52,7 +50,7 @@ const ModalBase = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
52
50
  className: "fr-modal-backdrop fwe-modal-backdrop"
53
51
  })
54
52
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactTransitionGroup.CSSTransition, {
55
- ref: modalRef,
53
+ nodeRef: divRef,
56
54
  unmountOnExit: true,
57
55
  classNames: "fr-modal",
58
56
  appear: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/react",
3
- "version": "5.1.0-dev.182",
3
+ "version": "5.1.0-dev.188",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "exports": {