From 07b3addfd9b80ab098f284f97695dd27fccf877a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Airton=20Neto?= Date: Wed, 2 Apr 2025 14:35:16 -0300 Subject: [PATCH] Adjustment to the code in "Extra placeholders" section Added a dot in the query in querySelectorAll to remove all empty ph --- src/eap/building-apps/ui/themes/theme-library.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eap/building-apps/ui/themes/theme-library.md b/src/eap/building-apps/ui/themes/theme-library.md index cf49dc42..b30d6b38 100644 --- a/src/eap/building-apps/ui/themes/theme-library.md +++ b/src/eap/building-apps/ui/themes/theme-library.md @@ -112,7 +112,7 @@ After setting the layouts, you must set the **App_LayoutTopMenu** in the app the Since you're adding extra placeholders, the default `ph` class to remove `divs` without content won’t work if the placeholder is empty. To make sure you can use the same behavior in the **OnReady** layout event, add the following script: ``` -var emptyPh = document.querySelectorAll("ph:empty"); +var emptyPh = document.querySelectorAll(".ph:empty"); emptyPh.forEach(function (a) { a.parentNode.remove(); })