Skip to content

Commit

Permalink
Update inner_updates_compact to account for new element name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoroth committed Feb 14, 2023
1 parent 1c28d83 commit 97b22ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions javascript/updatable/inner_updates_compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 97b22ec

Please sign in to comment.