From 4d4f0698fb368f5aabb2bbbd7bb4fa89ccab4c48 Mon Sep 17 00:00:00 2001 From: Galpittel Date: Tue, 18 Jun 2024 11:48:21 +0300 Subject: [PATCH] Store the result of this.getItemAriaRole() in a constant --- packages/gallery/src/components/item/itemView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/gallery/src/components/item/itemView.js b/packages/gallery/src/components/item/itemView.js index 805764a6f..695eb98de 100644 --- a/packages/gallery/src/components/item/itemView.js +++ b/packages/gallery/src/components/item/itemView.js @@ -952,6 +952,7 @@ class ItemView extends React.Component { const isItemWrapperEmpty = options[optionsMap.layoutParams.info.placement] !== GALLERY_CONSTS[optionsMap.layoutParams.info.placement].OVERLAY && !this.hasRequiredMediaUrl; + const itemAriaRole = this.getItemAriaRole(); const innerDiv = (