react-medium-image-zoom
react-medium-image-zoom copied to clipboard
Using Controlled zoom & ZoomContent at the same time breaks
Issue Type
- [x] Bug report
- [ ] Feature request
- [ ] Question / support request
- [ ] Other
Description
See repro in Codesandbox link: https://codesandbox.io/s/snowy-hill-ltjwwc?file=/src/App.tsx
Using Controlled
with ZoomContent
prop breaks the webpage that it's used in. Using them separately works fine.
After the first zoom-in, the first zoom-out breaks (no animation), and every interaction on the website thereafter is locked.