Giter Site home page Giter Site logo

Comments (17)

tarasmelnychuk avatar tarasmelnychuk commented on August 14, 2024 37

Found temp hack to solve the problem (tested on chrome only):

{lightBoxImage && (
        <Lightbox
          mainSrc={lightBoxImage}
          onImageLoad={() => {
            window.dispatchEvent(new Event('resize'));
          }}
          onCloseRequest={() => setLightBoxImage(null)}
        />
      )}

from react-image-lightbox.

igordanchenko avatar igordanchenko commented on August 14, 2024 1

If anyone is looking for an alternative to react-image-lightbox, here is the recently released lightbox library - yet-another-react-lightbox. All feedback is welcome.

from react-image-lightbox.

syum-akhlaque avatar syum-akhlaque commented on August 14, 2024

Any update on this issue?

from react-image-lightbox.

jongjunpark avatar jongjunpark commented on August 14, 2024

same issue

from react-image-lightbox.

cruzlutor avatar cruzlutor commented on August 14, 2024

Same issue, if you resize the window the current image appears

from react-image-lightbox.

dsdsharma avatar dsdsharma commented on August 14, 2024

Having the same issue

from react-image-lightbox.

kahirokunn avatar kahirokunn commented on August 14, 2024

same issue

from react-image-lightbox.

lvilasboas avatar lvilasboas commented on August 14, 2024

Same problem here, but at least @ihappycoder 's hacky fix worked

from react-image-lightbox.

ajitstark avatar ajitstark commented on August 14, 2024

Same issue, if you resize the window the current image appears

same here

from react-image-lightbox.

rpin-01 avatar rpin-01 commented on August 14, 2024

Same issue

from react-image-lightbox.

FStriewski avatar FStriewski commented on August 14, 2024

Same, please fix

from react-image-lightbox.

larinius avatar larinius commented on August 14, 2024

I have this issue on react-18-image-lightbox and original versions.

With "hacky fix" - issue gone, only have little longer loading time.

from react-image-lightbox.

Mokesh-off avatar Mokesh-off commented on August 14, 2024

https://www.npmjs.com/package/react-18-image-lightbox

Is this a separate package for react-18? looks like the readme is not updated properly
https://www.npmjs.com/package/react-18-image-lightbox?activeTab=readme

from react-image-lightbox.

mleister97 avatar mleister97 commented on August 14, 2024

Looks like the library frontend-collective/react-image-lightbox will not be maintained anymore. Really a pity.

from react-image-lightbox.

mostofanobi avatar mostofanobi commented on August 14, 2024

ihappycoder THANKS A LOT❤️ You saved my life 😘

from react-image-lightbox.

Pha1Huynh avatar Pha1Huynh commented on August 14, 2024

Work with me, node v18.2.0, thank you.

from react-image-lightbox.

cescoferraro avatar cescoferraro commented on August 14, 2024

onImageLoad={() => window.dispatchEvent(new Event("resize"))}

fixed it for me

from react-image-lightbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.