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 = ( -
this.onContextMenu(e)} id={cssScrollHelper.getSellectorDomId(this.props)} @@ -1009,7 +1010,7 @@ class ItemView extends React.Component {
{this.getRightInfoElementIfNeeded()} {this.getBottomInfoElementIfNeeded()} - + ); const handleKeyDown = (e) => { /* Relvenat only for Screen-Reader case: