diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js
index 1f602c4380e880..321e19a6456377 100644
--- a/packages/block-library/src/image/image.js
+++ b/packages/block-library/src/image/image.js
@@ -83,6 +83,11 @@ const scaleOptions = [
},
];
+const disabledClickProps = {
+ onClick: ( event ) => event.preventDefault(),
+ 'aria-disabled': true,
+};
+
export default function Image( {
temporaryURL,
attributes,
@@ -725,7 +730,6 @@ export default function Image( {
}
}
/* eslint-enable no-lonely-if */
-
img = (
tag to trigger any inherited link element styles */ }
+ { !! href ? (
+
+ { img }
+
+ ) : (
+ img
+ ) }
{ showCaption &&
( ! RichText.isEmpty( caption ) || isSelected ) && (