Skip to content

Commit

Permalink
fix(h5): stencil slot 与 react render冲突问题 #11379 (#11744)
Browse files Browse the repository at this point in the history
Co-authored-by: baosiqing <baosiqing@jd.com>
  • Loading branch information
baosiqing and baosiqing authored May 5, 2022
1 parent 9b4830a commit 3e8c8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-components/src/components/view/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class View implements ComponentInterface {
componentDidRender () {
const el = this.el
el.childNodes.forEach(item => {
if (item.nodeType === document.COMMENT_NODE) el.removeChild(item)
if (item.nodeType === document.COMMENT_NODE && item["s-cn"]) item["s-cn"] = false
})
}

Expand Down

0 comments on commit 3e8c8eb

Please sign in to comment.