diff options
Diffstat (limited to 'packages/integrations/lit/server.js')
-rw-r--r-- | packages/integrations/lit/server.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/integrations/lit/server.js b/packages/integrations/lit/server.js index aa91d1ea8..ae89bd610 100644 --- a/packages/integrations/lit/server.js +++ b/packages/integrations/lit/server.js @@ -63,9 +63,9 @@ function* render(Component, attrs, slots) { const shadowContents = instance.renderShadow({}); if (shadowContents !== undefined) { const { mode = 'open', delegatesFocus } = instance.shadowRootOptions ?? {}; - // `delegatesFocus` is intentionally allowed to coerce to boolean to - // match web platform behavior. - const delegatesfocusAttr = delegatesFocus ? ' shadowrootdelegatesfocus' : ''; + // `delegatesFocus` is intentionally allowed to coerce to boolean to + // match web platform behavior. + const delegatesfocusAttr = delegatesFocus ? ' shadowrootdelegatesfocus' : ''; yield `<template shadowroot="${mode}" shadowrootmode="${mode}"${delegatesfocusAttr}>`; yield* shadowContents; yield '</template>'; |