Render PhotoSwipe in a Portal
onigoetz opened this issue · 2 comments
onigoetz commented
Is it possible that the PhotoSwipeGallery renders PhotoSwipe in a portal ?
(something like this : https://github.com/tajo/react-portal)
I have the case where my gallery is rendered in an absolute container and it messes up with PhotoSwipe.
onigoetz commented
Hello, yes, I used a portal on my side, it works perfectly fine.
https://github.com/onigoetz/Comics-Reader/blob/master/src/js/components/ExtendedPhotoSwipeGallery.js
This is how I made it work.