You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@zizhouW I do feel it has something to do with lit, although I am not familiar enough with the framework or shadow doms to diagnose. I also see a runtime error on hover. This may take awhile to evaluate
Thank you @giannif! Looks like both the odd positioning as well as the on hover errors are because of renderGrid being wrapped in shadow DOM. I have updated the codesandbox to show a comparison between being wrapped in shadow DOM vs NOT wrapped in shadow DOM. I see that renderGrid is using bricks.js for the "render logic" 🤔
Duplicates
Latest version
Current behavior 😯
I am trying to use the
renderGrid
component inside a lit project.It seems like all gifs are rendered with
and stacked together as a result. Could it be because of shadow DOM?
Expected behavior 🤔
renderGrid
should form a grid to display all gifs fetchedSteps to reproduce 🕹
https://codesandbox.io/s/litelement-typescript-forked-i8nz57
Screenshots or Videos 📹
Platform 🌍
GIPHY-JS SDK version
@giphy/js-components 5.8.2
TypeScript version
v4.7.4
Additional context 🔦
No response
The text was updated successfully, but these errors were encountered: