From 1fbd8e48b6a65e6c3cc8ff21f16ceaba7d211755 Mon Sep 17 00:00:00 2001 From: konnorrogers Date: Tue, 1 Oct 2024 17:47:04 -0400 Subject: [PATCH] comment out hydration error script --- docs/docs/components/tree.md | 16 +++++++++++++++- src/internal/test/fixture.ts | 11 ++++++----- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/docs/docs/components/tree.md b/docs/docs/components/tree.md index a0006677f..261af841f 100644 --- a/docs/docs/components/tree.md +++ b/docs/docs/components/tree.md @@ -4,6 +4,20 @@ description: Trees allow you to display a hierarchical list of selectable tree i layout: component --- +```html {.example} + + + Parent Node + Child Node 1 + + Child Node 2 + Child Node 2 - 1 + Child Node 2 - 2 + + + +``` + ```html {.example} @@ -241,4 +255,4 @@ Decorative icons can be used before labels to provide hints for each node. -``` +``` \ No newline at end of file diff --git a/src/internal/test/fixture.ts b/src/internal/test/fixture.ts index 062c4a94f..3dc6117f6 100644 --- a/src/internal/test/fixture.ts +++ b/src/internal/test/fixture.ts @@ -20,15 +20,16 @@ declare global { /** * This will hopefully move to a library or be built into Lit. Right now this does nothing. */ -function handleHydrationError(e: Event) { - const element = e.target as WebAwesomeElement; +// function handleHydrationError(e: Event) { +// const element = e.target as WebAwesomeElement; +// const str = `Expected <${element.localName}> to not have hydration error.` - expect(false).to.equal(true, `Expected ${element.tagName} to not have hydration error.`); -} +// expect(false).to.equal(true, str); +// } // This is a non-standard event I have added to the WebAwesomeElement base class. // https://github.com/lit/lit/discussions/4703 -document.addEventListener('lit-hydration-error', handleHydrationError); +// document.addEventListener('lit-hydration-error', handleHydrationError); /** * Loads up a fixture and loads all client components