diff --git a/core/modules/outside_in/js/outside_in.js b/core/modules/outside_in/js/outside_in.js index 26c5c23..eea9075 100644 --- a/core/modules/outside_in/js/outside_in.js +++ b/core/modules/outside_in/js/outside_in.js @@ -124,8 +124,8 @@ * True enable edit mode, false disable edit mode. */ function setEditModeState(editMode) { - if (!document.querySelector('[data-offcanvas-main-canvas]')) { - throw new Error('data-offcanvas-main-canvas is missing from outside-in-page-wrapper.html.twig'); + if (!document.querySelector('[data-off-canvas-main-canvas]')) { + throw new Error('data-off-canvas-main-canvas is missing from outside-in-page-wrapper.html.twig'); } editMode = !!editMode; var $editButton = $(toggleEditSelector); diff --git a/core/modules/outside_in/templates/outside-in-page-wrapper.html.twig b/core/modules/outside_in/templates/outside-in-page-wrapper.html.twig index cdff416..b224deb 100644 --- a/core/modules/outside_in/templates/outside-in-page-wrapper.html.twig +++ b/core/modules/outside_in/templates/outside-in-page-wrapper.html.twig @@ -4,7 +4,7 @@ * Default theme implementation for a page wrapper. * * For consistent wrapping to {{ page }} render in all themes. The - * "data-offcanvas-main-canvas" attribute is required by the off-canvas dialog. + * "data-off-canvas-main-canvas" attribute is required by the off-canvas dialog. * It cannot be removed without breaking the off-canvas dialog functionality. * * Available variables: