Closed diervo closed 2 months ago
After some debugging seems to be due to the fact that Im instantiating Swapy inside a Shadow
@diervo Thank you for reporting this issue. Unfortunately, Veloxi (which was used to create Swapy) only works directly on the DOM and can't be used with the shadow DOM. The only case I can think of where it might work with web components is if you are using item content as components. For example:
<div data-swapy-slot="1">
<div data-swapy-item="a">
<my-component></my-component>
</div>
</div>
But that might not be what you want. Sorry! 😞
I tried to debug it, but locally is minified and I just didn't have much time to dig into your plugin lifecycle.
The following code:
Throws: