Skip to content

Commit 7f2c505

Browse files
committed
fix(custom-element): ignore scoped id
1 parent 37d2ce5 commit 7f2c505

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: packages/runtime-dom/src/apiCustomElement.ts

+1
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ export class VueElement extends BaseClass {
331331
}
332332

333333
protected _setAttr(key: string) {
334+
if (key.startsWith('data-v-')) return
334335
let value = this.hasAttribute(key) ? this.getAttribute(key) : undefined
335336
const camelKey = camelize(key)
336337
if (this._numberProps && this._numberProps[camelKey]) {

0 commit comments

Comments
 (0)