Skip to content

Commit

Permalink
fix(custom-element): ignore scoped id
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 3, 2024
1 parent 37d2ce5 commit 7f2c505
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/runtime-dom/src/apiCustomElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down

0 comments on commit 7f2c505

Please sign in to comment.