-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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(dashboard): drag preview not working #21432
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21432 +/- ##
=======================================
Coverage 66.56% 66.56%
=======================================
Files 1791 1791
Lines 68591 68591
Branches 7319 7319
=======================================
Hits 45656 45656
Misses 21046 21046
Partials 1889 1889
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@stephenLYZ I'm still able to reproduce the issue. If I remove Screen.Recording.2022-09-12.at.7.33.44.AM.mov |
@michael-s-molina This is actually another problem with the pivot table v2, because it also uses fixed position , and we may need to use another PR to solve it. But for the rest of the chart, everything looks fine. During my troubleshooting, I found that this commit was fine before, but afterwards the behavior was not as expected, so I'm guessing that this is what's affecting it. |
Oh, thanks for clarifying that. LGTM |
SUMMARY
Currently the drag preview of
react-dnd
was broken since we introduceposition: 'fixed'
inside the drag container from #21198. To fix this, we usecreatePortal
to ensure that the parent container is not affected and that the dropdown is also displayed properly.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
2022-09-12.12.22.42.mov
after
2022-09-12.12.11.41.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION