diff --git a/src/bundle/Resources/public/js/scripts/admin.content.edit.js b/src/bundle/Resources/public/js/scripts/admin.content.edit.js index d51d28b0b1..51015c97de 100644 --- a/src/bundle/Resources/public/js/scripts/admin.content.edit.js +++ b/src/bundle/Resources/public/js/scripts/admin.content.edit.js @@ -62,7 +62,7 @@ if (invalidSection) { const { anchorSectionId } = invalidSection.dataset; - const invalidButton = doc.querySelector(`[data-anchor-target-section="${anchorSectionId}"`); + const invalidButton = doc.querySelector(`[data-anchor-target-section-id="${anchorSectionId}"`); invalidButton.click(); } @@ -116,7 +116,7 @@ invalidSections.forEach((sections) => { sections.forEach((invalidSectionId) => { - doc.querySelector(`[data-anchor-target-section='${invalidSectionId}']`).classList.add( + doc.querySelector(`[data-anchor-target-section-id='${invalidSectionId}']`).classList.add( 'ibexa-anchor-navigation-menu__btn--invalid' ); });