-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Transform of dragged elements causes overlap of adjacent content #1644
Comments
Should add: happy to do a PR, though given further testing is required might be best if someone who is familiar with original issue has a look? |
owen-m1
pushed a commit
that referenced
this issue
Oct 12, 2019
Merged PR in e979370 |
Closed
elo7-developer
pushed a commit
to elo7/Sortable
that referenced
this issue
Nov 18, 2019
Runi-c
pushed a commit
to Tupperbox/Sortable
that referenced
this issue
Nov 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem
When a sortable element is dragged, an attribute of
transform: translateZ(0)
is added (looks like to fix an old rendering issue in Chrome - #1276); however, when the element is dropped this attribute is not removed, resulting in any absolutely position children of the draggable element (such as a tooltip) that extend past their parent's bounds to be overlapped by any following dragged/draggable elements.To recreate
https://jsfiddle.net/4kcbzLse/
Fix is very easy - just need to add a line:
To line
1353
of./src/Sortable.js
(within the_onDrop: function() { ... }
call). This will remove the attribute again once an element has been dropped.Tested locally and fixes the issue for me, though to be clear - I have not experienced the issue #1276 myself, so not sure if this will cause conflicts with that. Might be worth further testing
The text was updated successfully, but these errors were encountered: