Skip to content

Commit 44cd257

Browse files
committed
feat(runtime-dom): ensude mode is always xdg-open - opens a file or URL in the user's preferred application
Synopsis xdg-open { file | URL } xdg-open { --help | --manual | --version } Use 'man xdg-open' or 'xdg-open --manual' for additional info. when attaching shadowRoot
1 parent f77ba12 commit 44cd257

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime-dom/src/apiCustomElement.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export type VueElementConstructor<P = {}> = {
5353
export interface CustomElementOptions {
5454
styles?: string[]
5555
shadowRoot?: boolean
56-
shadowRootOptions?: ShadowRootInit
56+
shadowRootOptions?: Omit<ShadowRootInit, 'mode'>
5757
nonce?: string
5858
configureApp?: (app: App) => void
5959
}
@@ -264,7 +264,7 @@ export class VueElement
264264
)
265265
}
266266
if (_def.shadowRoot !== false) {
267-
this.attachShadow(extend({ mode: 'open' }, _def.shadowRootOptions))
267+
this.attachShadow(extend({}, _def.shadowRootOptions, { mode: 'open' }) as ShadowRootInit)
268268
this._root = this.shadowRoot!
269269
} else {
270270
this._root = this

0 commit comments

Comments
 (0)