@salesforcedevs/docs-components 1.27.22-banner10 → 1.27.22-banner11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.27.22-banner10",
3
+ "version": "1.27.22-banner11",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -25,5 +25,5 @@
25
25
  "@types/lodash.orderby": "4.6.9",
26
26
  "@types/lodash.uniqby": "4.7.9"
27
27
  },
28
- "gitHead": "c74a086b4b41bf4d36f01c89feb97d0360dcf97f"
28
+ "gitHead": "ea29a6b1c177ea33e34105b1ad4a1ec3e9bb4b54"
29
29
  }
@@ -342,8 +342,13 @@ export default class DocXmlContent extends LightningElementWithState<{
342
342
  this.deliverable || "default"
343
343
  );
344
344
  host.setAttribute("aria-hidden", "false");
345
- host.appendChild(banner);
346
345
  this._xmlLocaleBannerDispatched = true;
346
+ // Defer append so custom element can upgrade and host :empty state updates next frame
347
+ requestAnimationFrame(() => {
348
+ if (!host.hasChildNodes()) {
349
+ host.appendChild(banner);
350
+ }
351
+ });
347
352
  }
348
353
 
349
354
  private get useOldSidebar(): boolean {