Skip to content

Commit

Permalink
fix: 修复onCloneNode没有等待用户处理结束导致在回调中处理样式无效
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangqianling authored and qq15725 committed Nov 6, 2024
1 parent 349199c commit 868758a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converts/dom-to-foreign-object-svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function domToForeignObjectSvg(node: any, options?: any) {
}
log.timeEnd('clone node')

onCloneNode?.(clone)
await onCloneNode?.(clone)

if (font !== false && isElementNode(clone)) {
log.time('embed web font')
Expand Down

0 comments on commit 868758a

Please sign in to comment.