We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8308e65 commit 0f05ac7Copy full SHA for 0f05ac7
packages/react/src/components/ComposedModal/ComposedModal.js
@@ -200,7 +200,7 @@ const ComposedModal = React.forwardRef(function ComposedModal(
200
useEffect(() => {
201
return () =>
202
toggleClass(document.body, `${prefix}--body--with-modal-open`, false);
203
- });
+ }, []); // eslint-disable-line react-hooks/exhaustive-deps
204
205
206
toggleClass(document.body, `${prefix}--body--with-modal-open`, open);
0 commit comments