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
Support for Web Components #310
Comments
@mattiapontonio did you find a solution for this? |
@johannesjo really not. By my side, the issue is now in charge to another developer so I'm not focused on that now. |
@mattiapontonio ok thanks for getting back to me! |
@mattiapontonio @johannesjo have either of you found a solution? 90% there, just having issues with Glide skipping the element on mount. |
@alexghattas no sorry. |
@johannesjo I was able to find a workaround for now. Had to make some small changes to the actual package files for now, but its working with the slotted items. Let me know if you're still stuck on this. |
@alexghattas thanks. I don't really am (project is over, and we chose a different carousel). Pretty sure though that others might be interested :) |
@alexghattas have you considered making a PR for your solution? |
@kylerberry in the end, there was no need to manipulate the code of the package, we were able to use the events to get what we wanted. |
@alexghattas Good! I was just able to make a LitElement component that supports slottable content without modifying the source. For anyone interested: https://gist.github.com/kylerberry/51cf28565e434de410d6ebd337a2f962 html use:
|
Any updates here? Can I close the issue? |
Close with this workaround. |
We are in troubles using Glide inside a Web Component, with LitElement.
Should be good in general if the library supports the possibility of place his HTML structure inside
<slot>
and so dealing with Shadow DOM and other Web Components features.Rif:
Acctually the library seems to not support the presence of
<slot>
inside.The text was updated successfully, but these errors were encountered: