diff --git a/docs/docs/components/select.md b/docs/docs/components/select.md index 239697572..5f8420c3b 100644 --- a/docs/docs/components/select.md +++ b/docs/docs/components/select.md @@ -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); + });