Skip to content
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

Fixed fallback not working if elements were in ShadowRoot #1282

Closed
wants to merge 1 commit into from
Closed

Fixed fallback not working if elements were in ShadowRoot #1282

wants to merge 1 commit into from

Conversation

myfrom
Copy link

@myfrom myfrom commented Feb 10, 2018

The fallback of Drag N Drop behaviour works on elements in Shadow DOM but only if there's only one ShadowRoot. Sadly, this is not always the case.

My modifications make it work no matter how many ShadowRoots are in the tree.

Here is a comparison:
My fork
Current master

This issue was reported on polymer-sortablejs#25 because usually Polymer uses many ShadowRoots.

RubaXa added a commit that referenced this pull request Feb 26, 2018
@RubaXa
Copy link
Collaborator

RubaXa commented Feb 26, 2018

http://jsbin.com/nacegusuvu/1/edit
Why, is this not enough 847cc6b ?

@myfrom
Copy link
Author

myfrom commented Feb 26, 2018

Yeah, it works too. I opened PR before your edit and did it a bit different way because I thought it's gonna have better performance but I haven't really tested them side by side.

I think this could be closed now, thanks for fixing!

BTW: Could you please upload to Bower, it still sees the latest as 1.6 which doesn't have this fix?

Thanks 😄

@myfrom myfrom closed this Feb 26, 2018
@myfrom myfrom deleted the fallback-shadowdom branch February 26, 2018 18:29
Runi-c pushed a commit to Tupperbox/Sortable that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants