From 312225e8c307eca3ef94b05e6f3e94e7d927b8c4 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Fri, 27 Sep 2024 10:05:59 -0400 Subject: [PATCH] prettier --- docs/.eleventy.js | 8 ++++---- src/components/select/select.ts | 3 ++- src/internal/test/fixture.ts | 13 ++++++------- 3 files changed, 12 insertions(+), 12 deletions(-) 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(