Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/5app/base5-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed May 29, 2020
2 parents 2fbde07 + 16ebc85 commit b6c85f1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
## [9.2.2](https://github.com/5app/base5-ui/compare/v9.2.1...v9.2.2) (2020-05-27)


### Bug Fixes

* pass props through InnerBodyScrollLock component ([#88](https://github.com/5app/base5-ui/issues/88)) ([7461459](https://github.com/5app/base5-ui/commit/7461459587d6f7909f2b2e489893ef4e8e0566c5))

## [9.2.1](https://github.com/5app/base5-ui/compare/v9.2.0...v9.2.1) (2020-05-27)


### Bug Fixes

* **Modal:** Add demo link to readme, noissue ([3285f48](https://github.com/5app/base5-ui/commit/3285f48b04ba4ccfe56c84fb1d67dbd04f6373c5))

# [9.2.0](https://github.com/5app/base5-ui/compare/v9.1.2...v9.2.0) (2020-05-27)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "base5-ui",
"version": "9.2.0",
"version": "9.2.2",
"description": "5app's reusable UI component library",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/Modal/BodyScrollLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function useScrollLockStyles({isLocked}) {
}

function InnerBodyScrollLock(props, ref) {
const {as: Component = 'div', children, style} = props;
const {as: Component = 'div', children, style, ...otherProps} = props;
const modalStack = useContext(ModalStackContext);
const hasModal = modalStack?.length;
const bodyLockStyles = useScrollLockStyles({isLocked: hasModal});
Expand All @@ -44,6 +44,7 @@ function InnerBodyScrollLock(props, ref) {
<Component
ref={ref}
style={style ? {...style, ...bodyLockStyles} : bodyLockStyles}
{...otherProps}
>
{children}
</Component>
Expand Down

0 comments on commit b6c85f1

Please sign in to comment.