diff --git a/CHANGELOG.md b/CHANGELOG.md index bb5933a7..24816066 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.5.1-next.1](https://github.com/fabric-ds/react/compare/v1.5.0...v1.5.1-next.1) (2023-03-01) + + +### Bug Fixes + +* **modal:** cleanup scroll-doctor lock on unmount ([74a5c89](https://github.com/fabric-ds/react/commit/74a5c896d4cf8c7b111526e68500f66b0a9de5f7)) + # [1.5.0](https://github.com/fabric-ds/react/compare/v1.4.2...v1.5.0) (2022-11-21) diff --git a/package-lock.json b/package-lock.json index ac6c2ed8..983a7a32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@fabric-ds/react", - "version": "1.5.0", + "version": "1.5.1-next.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@fabric-ds/react", - "version": "1.5.0", + "version": "1.5.1-next.1", "license": "ISC", "dependencies": { "@chbphone55/classnames": "^2.0.0", diff --git a/package.json b/package.json index 52a6e5e9..f7a89894 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fabric-ds/react", - "version": "1.5.0", + "version": "1.5.1-next.1", "repository": "git@github.com:fabric-ds/react.git", "license": "ISC", "type": "module", diff --git a/packages/modal/src/component.tsx b/packages/modal/src/component.tsx index 18fc46ea..3209fbb5 100644 --- a/packages/modal/src/component.tsx +++ b/packages/modal/src/component.tsx @@ -21,6 +21,10 @@ export const Modal = ({ teardown(); if (!contentRef.current) return; props.open && setup(contentRef.current); + + return () => { + teardown(); + }; }, [props.open, contentRef]); useEffect(() => {