From 141213f5c93b1ce6369b262d4bd322b89ddf0550 Mon Sep 17 00:00:00 2001 From: Marco Roth Date: Tue, 14 Feb 2023 17:19:59 +0100 Subject: [PATCH] Update `inner_updates_compat` to account for new element name --- javascript/updatable/inner_updates_compat.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/javascript/updatable/inner_updates_compat.js b/javascript/updatable/inner_updates_compat.js index 84d70d34..0b24ae99 100644 --- a/javascript/updatable/inner_updates_compat.js +++ b/javascript/updatable/inner_updates_compat.js @@ -38,7 +38,9 @@ export const registerInnerUpdates = () => { const recursiveMarkUpdatesForElements = leaf => { const closestUpdatesFor = - leaf && leaf.parentElement && leaf.parentElement.closest('updates-for') + leaf && + leaf.parentElement && + leaf.parentElement.closest('cable-ready-updates-for') if (closestUpdatesFor) { closestUpdatesFor.setAttribute('performing-inner-update', '') recursiveMarkUpdatesForElements(closestUpdatesFor) @@ -47,7 +49,9 @@ const recursiveMarkUpdatesForElements = leaf => { const recursiveUnmarkUpdatesForElements = leaf => { const closestUpdatesFor = - leaf && leaf.parentElement && leaf.parentElement.closest('updates-for') + leaf && + leaf.parentElement && + leaf.parentElement.closest('cable-ready-updates-for') if (closestUpdatesFor) { closestUpdatesFor.removeAttribute('performing-inner-update') recursiveUnmarkUpdatesForElements(closestUpdatesFor)