Open kayvaninvemo opened 3 weeks ago
@kayvaninvemo do you have time to put an example into a CodeSandbox that I can test with?
@kayvaninvemo I unfortunately don't yet understand what the problem is. If you can help me understand it with a demo, that would be helpful.
@rpearce
try here: https://stackblitz.com/edit/vitejs-vite-nddcft?file=src%2FApp.tsx
@tjx666 this is exactly my issue. I did a workaround here
onClose={(e: any) => {
if (e.target?.id?.match(/rmiz-modal-.*/)) {
return;
}
handleClose();
}}
@tjx666 @kayvaninvemo Got it! Will fix. Many thanks for y'all's patience and sharing info.
Well, I thought this would be fixed in react-medium-image-zoom@5.2.11
, but I went back to that stackblitz, updated the package.json
, re-installed, and gave it a whirl, but no difference.
Could one of y'all give this a try for me? It's not impossible @mui/material
is doing something unexpected.
https://github.com/rpearce/react-medium-image-zoom/blob/4ad2a9ceebdbdf247f388c69190f07b90cfa4d71/source/Controlled.tsx#L260
here we need to preventDefault, otherwise it causes un expected behaviour if the zoom component it self is inside a dialog.