Skip to content

Commit

Permalink
fix: a href 过滤undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
timhub66 committed Oct 9, 2024
1 parent 10d7cbf commit d6f1ae6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sandbox/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ export function updateElementInfo <T> (node: T, appName: string | null): T {
return this.getAttribute('href')
},
set(value: string) {
if (value === undefined) {
return
}
this.setAttribute('href', value)
},
}
Expand Down

0 comments on commit d6f1ae6

Please sign in to comment.