From e7b80b7fa236a5302300bca49f34d3492dc13f73 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Thu, 31 Mar 2022 21:00:03 +0300 Subject: [PATCH] fix: Fix 'resume' when clicking on item details poster Find the element with 'action'. --- src/controllers/itemDetails/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/controllers/itemDetails/index.js b/src/controllers/itemDetails/index.js index 5272e51dfc..f48fd4fe6b 100644 --- a/src/controllers/itemDetails/index.js +++ b/src/controllers/itemDetails/index.js @@ -1926,7 +1926,15 @@ export default function (view, params) { } function onPlayClick() { - playCurrentItem(this, this.getAttribute('data-action')); + let actionElem = this; + let action = actionElem.getAttribute('data-action'); + + if (!action) { + actionElem = actionElem.querySelector('[data-action]') || actionElem; + action = actionElem.getAttribute('data-action'); + } + + playCurrentItem(actionElem, action); } function onInstantMixClick() {