primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Image: image zoomed out when opening second time

Open arnis87 opened this issue 2 years ago • 2 comments

Describe the bug

When Image is opened second time it appears fully zoomed out, user needs to zoom in to see the image.

Reproducer

https://codesandbox.io/p/sandbox/pedantic-lalande-m8cyqx

PrimeReact version

10.3.1

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Open Image component
  2. Close the Image by clicking on mask/overlay
  3. Open second time
  4. Observe that image is not visible, it is actually zoomed out
  5. Press zoom in until image appears

Expected behavior

Image shown when opened second time

arnis87 avatar Jan 15 '24 14:01 arnis87

@arnis87 10.3.2 is out if you want to let me know how its working now.

melloware avatar Jan 17 '24 14:01 melloware

@melloware at least the reproducer now works. Will try it out in my actual application later. Thanks

arnis87 avatar Jan 17 '24 14:01 arnis87