alibaba / alibaba/lowcode-engine

removeDocument仍然遗留style的问题

Open
#2,305 2 comments 0 reactions 2 assignees Claimed by @SuSunSam View on GitHub
bug later
Dominant language
TypeScript
Stars
15.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

## **Describe the bug (required)** / **详细描述 bug(必填)**

removeDocument仍然遗留style的问题

---

## **To Reproduce (required)** / **如何复现 bug?(必填,非常重要)**

直接在官方Demo操作,这是默认页面,带有样式↓
![image](https://github.com/alibaba/lowcode-engine/assets/36667646/21d2ab69-0c85-402a-8f98-2a3efb8f4df4)
现在把document移除掉↓
![image](https://github.com/alibaba/lowcode-engine/assets/36667646/29aa4820-c569-4141-ab2e-ee5b939d0304)
问题出来了,dom已经销毁,但是style仍然保留着↓
![image](https://github.com/alibaba/lowcode-engine/assets/36667646/c3d24e5f-dac2-4b2c-81e7-18500e294d39)

如果这时候重新打开其他document,style就污染了

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.