-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Modal): fix positioning when "as" prop is a component #2623
fix(Modal): fix positioning when "as" prop is a component #2623
Conversation
💖 Thanks for opening this pull request! 💖 Here is a list of things that will help get it across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
Codecov Report
@@ Coverage Diff @@
## master #2623 +/- ##
=======================================
Coverage 99.74% 99.74%
=======================================
Files 160 160
Lines 2751 2751
=======================================
Hits 2744 2744
Misses 7 7
Continue to review full report at Codecov.
|
Now that I have had some time to think about this, I believe this could be easily solved by wrapping the content element in a |
@trevorharwell thanks for PR 👍 In fact, we have a quite stale #2306, that should solve this problem for all components. As current solution, we can accept PR that will use |
@layershifter Thanks for getting back to me. I updated the PR per your request. Let me know if there is anything else I should do. FYI we use SUIR for a large scale web application at my company and we love it! Thanks for such a great library! |
@layershifter this looks OK to me for a short-term fix, merge at will. Perhaps we should add these TODOs to #2306 so we remember to clean them up. |
Released in |
I found that when I use
<Modal as={SomeComponent} />
in React 16, the modal positioning broke. This is an easy and straight forward way to remedy the problem. Let me know if there is an alternative approach that I should be taking.Re Testing: I didn't see any tests that covered this particular function so I didn't add any. If that is desired I can try to figure something out.