Skip to content

Commit

Permalink
Fix portal is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
datobs committed Mar 11, 2022
1 parent 6d8e847 commit 0d6ae72
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/GlassMagnifier.js
Expand Up @@ -27,7 +27,8 @@ const GlassMagnifier = props => {
onImageLoad,
onLargeImageLoad,
onZoomStart,
onZoomEnd
onZoomEnd,
portalTarget
} = props;

return (
Expand Down Expand Up @@ -61,6 +62,7 @@ const GlassMagnifier = props => {
cursorStyle={cursorStyle}
onImageLoad={onImageLoad}
onLargeImageLoad={onLargeImageLoad}
portalTarget={portalTarget}
/>
</ReactInputPosition>
);
Expand Down Expand Up @@ -89,7 +91,8 @@ GlassMagnifier.propTypes = {
className: PropTypes.string,
style: PropTypes.object,
onImageLoad: PropTypes.func,
onLargeImageLoad: PropTypes.func
onLargeImageLoad: PropTypes.func,
portalTarget: PropTypes.instanceOf(HTMLElement)
};

GlassMagnifier.defaultProps = {
Expand Down

0 comments on commit 0d6ae72

Please sign in to comment.