diff --git a/packages/gallery/src/components/item/itemView.js b/packages/gallery/src/components/item/itemView.js index 843ffdc04..7ab83a2cf 100644 --- a/packages/gallery/src/components/item/itemView.js +++ b/packages/gallery/src/components/item/itemView.js @@ -958,8 +958,9 @@ class ItemView extends React.Component { options[optionsMap.layoutParams.info.placement] !== GALLERY_CONSTS[optionsMap.layoutParams.info.placement].OVERLAY && !this.hasRequiredMediaUrl; const itemAriaRole = this.getItemAriaRole(); + const Element = this.props.elementsOverride?.item || 'div'; const innerDiv = ( -