ensure fix works on backers website (#579)

This commit is contained in:
Cory LaViska
2025-01-21 12:36:54 -05:00
committed by GitHub
parent 44e5e37a2b
commit d1c1d689ce

View File

@@ -420,5 +420,7 @@ This can be hard to conceptualize, so heres a fairly large example showing how l
//
// TODO - remove once we switch to the Popover API
//
document.querySelectorAll('wa-code-demo [slot="preview"] wa-select').forEach(select => select.hoist = true);
customElements.whenDefined('wa-select').then(() => {
document.querySelectorAll('wa-code-demo [slot="preview"] wa-select').forEach(select => select.hoist = true);
});
</script>