Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Conversation

TheSharpieOne
Copy link
Collaborator

remove ref from the wrapper element to allow wrapper to be any component (not just DOM elements)
the ref is now on the overlay which is the same height and width as the wrapper (per styling) allowing the keepInView logic to work the same.

fixes #8

Note: If we do want want to depend on styling (incase someone overrides the styles to make the overlay different), we can use the tab helpers which appear before and after the blocked content as mentioned in #8 (comment). If this is the case, a new PR can be made.

remove ref from the wrapper element to allow wrapper to be any component (not just DOM elements)
the ref is now on the overlay which is the same height and width as the wrapper allowing the keepInView logic to work the same.

fixes #8
@TheSharpieOne TheSharpieOne requested a review from GoPro16 June 18, 2019 17:31
@netlify
Copy link

netlify bot commented Jun 18, 2019

Deploy preview for react-block-ui ready!

Built with commit 065f592

https://deploy-preview-27--react-block-ui.netlify.com

@coveralls
Copy link

coveralls commented Jun 18, 2019

Coverage Status

Coverage remained the same at 97.414% when pulling 065f592 on fix/iss-8 into 4ad7107 on master.

@TheSharpieOne TheSharpieOne mentioned this pull request Jun 18, 2019
container will no long exist when not blocking as it's now conditionally rendered
Copy link
Contributor

@GoPro16 GoPro16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just about to make that last change 😆

LGTM

@TheSharpieOne
Copy link
Collaborator Author

github really wants me to know this:
image

@TheSharpieOne TheSharpieOne merged commit 7b51125 into master Jun 18, 2019
@TheSharpieOne TheSharpieOne deleted the fix/iss-8 branch June 18, 2019 18:33
@TheSharpieOne
Copy link
Collaborator Author

@GoPro16 or @robmcguinness, one of you mind creating a new release and publishing it 🙏🙏🙏

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error when using react component as tag
3 participants