We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f77ba12 commit 44cd257Copy full SHA for 44cd257
packages/runtime-dom/src/apiCustomElement.ts
@@ -53,7 +53,7 @@ export type VueElementConstructor<P = {}> = {
53
export interface CustomElementOptions {
54
styles?: string[]
55
shadowRoot?: boolean
56
- shadowRootOptions?: ShadowRootInit
+ shadowRootOptions?: Omit<ShadowRootInit, 'mode'>
57
nonce?: string
58
configureApp?: (app: App) => void
59
}
@@ -264,7 +264,7 @@ export class VueElement
264
)
265
266
if (_def.shadowRoot !== false) {
267
- this.attachShadow(extend({ mode: 'open' }, _def.shadowRootOptions))
+ this.attachShadow(extend({}, _def.shadowRootOptions, { mode: 'open' }) as ShadowRootInit)
268
this._root = this.shadowRoot!
269
} else {
270
this._root = this
0 commit comments