From cfe4771741ef9551c60b337d49af0aa75c22f821 Mon Sep 17 00:00:00 2001 From: hadasze Date: Tue, 27 Aug 2024 15:40:21 +0300 Subject: [PATCH] show video play button in placeholder depends only on show button toggle --- .../gallery/src/components/item/videos/videoItemWrapper.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/gallery/src/components/item/videos/videoItemWrapper.js b/packages/gallery/src/components/item/videos/videoItemWrapper.js index d4dfd55f0..fc301cda9 100644 --- a/packages/gallery/src/components/item/videos/videoItemWrapper.js +++ b/packages/gallery/src/components/item/videos/videoItemWrapper.js @@ -78,8 +78,7 @@ class VideoItemWrapper extends React.Component { isThumbnail={!!this.props.thumbnailHighlightId} id={this.props.idx} videoPlayButton={ - showVideoPlayButton && - !this.state.videoItemLoaded && ( + showVideoPlayButton && ( {shouldCreateVideoPlaceholder(this.props.options) && videoPlaceholder}