]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(custom-element): ignore scoped id
authorEvan You <evan@vuejs.org>
Sat, 3 Aug 2024 05:40:57 +0000 (13:40 +0800)
committerEvan You <evan@vuejs.org>
Sat, 3 Aug 2024 05:40:57 +0000 (13:40 +0800)
packages/runtime-dom/src/apiCustomElement.ts

index f87bf266418435bc016fece881f0799ee2a1aca9..5c421b38ed58029e084b1f800d0aeb99f22611bf 100644 (file)
@@ -331,6 +331,7 @@ export class VueElement extends BaseClass {
   }
 
   protected _setAttr(key: string) {
+    if (key.startsWith('data-v-')) return
     let value = this.hasAttribute(key) ? this.getAttribute(key) : undefined
     const camelKey = camelize(key)
     if (this._numberProps && this._numberProps[camelKey]) {