diff --git a/packages/hippy-react-web/src/components/image.tsx b/packages/hippy-react-web/src/components/image.tsx index dc24b7451..c2a7557c7 100644 --- a/packages/hippy-react-web/src/components/image.tsx +++ b/packages/hippy-react-web/src/components/image.tsx @@ -148,7 +148,8 @@ export class Image extends React.Component { isLoadSuccess: true, }); if (onLoad) { - const imageInfo = e.path[0]; + const path = e.path || (e.composedPath && e.composedPath()); + const imageInfo = path[0]; onLoad({ width: imageInfo.naturalWidth, height: imageInfo.naturalHeight,