Skip to content

Commit

Permalink
Merge pull request #180 from fabric-ds/next
Browse files Browse the repository at this point in the history
Release: Wednesday 1st March 2023
  • Loading branch information
BalbinaK committed Mar 2, 2023
2 parents d479592 + fe5b060 commit 83ac78d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/modal/src/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export const Modal = ({
teardown();
if (!contentRef.current) return;
props.open && setup(contentRef.current);

return () => {
teardown();
};
}, [props.open, contentRef]);

useEffect(() => {
Expand Down

0 comments on commit 83ac78d

Please sign in to comment.