diff --git a/docs/.eleventy.js b/docs/.eleventy.js index add281c3e..1630652d7 100644 --- a/docs/.eleventy.js +++ b/docs/.eleventy.js @@ -123,10 +123,10 @@ export default function (eleventyConfig) { return `./dist/components/${name}/${name}.js`; }); - // eleventyConfig.addPlugin(litPlugin, { - // mode: 'worker', - // componentModules - // }); + eleventyConfig.addPlugin(litPlugin, { + mode: 'worker', + componentModules + }); // Build the search index eleventyConfig.addPlugin( diff --git a/src/components/select/select.ts b/src/components/select/select.ts index f4646d3c3..d9efc6995 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -874,7 +874,8 @@ export default class WaSelect extends WebAwesomeFormAssociatedElement { @blur=${this.handleBlur} /> - ${this.multiple ? html`
${this.tags}
` : ''} + + ${this.multiple && this.updated ? html`
${this.tags}
` : ''} (template: TemplateResult | string) { // Load all component definitions "customElements.define()" - // await Promise.allSettled(window.clientComponents.map(str => import(str))); return await fixture(template); } @@ -49,9 +51,6 @@ export async function hydratedFixture(templ hydrate: true }); - // Load all component definitions "customElements.define()" - // await Promise.allSettled(window.clientComponents.map(str => import(str))); - // This can be removed when this is fixed: https://github.com/lit/lit/issues/4709 // This forces every element to "hydrate" and then wait for an update to complete (hydration) await Promise.allSettled(