-
-
Notifications
You must be signed in to change notification settings - Fork 651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ui): cleanup DOMs when dispose #1663
Conversation
View Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1663 +/- ##
=======================================
Coverage 32.95% 32.95%
=======================================
Files 946 946
Lines 52819 52823 +4
Branches 11050 11050
=======================================
+ Hits 17405 17408 +3
- Misses 35414 35415 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some code can be simplified.
bc4e5bb
to
7f06990
Compare
Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
7f06990
to
272c564
Compare
* fix: cleanup DOMs on dispose * refactor(sheet-ui): simplified dispose Co-authored-by: Wenzhao Hu <wzhudev@gmail.com> --------- Co-authored-by: Wenzhao Hu <wzhudev@gmail.com>
When the univer is destroyed and then re created, there are residual doms that have not been cleaned up
A description of the proposed changes.
remove iframe and .univer-theme when univer dispose called
How to test them.
Replace the file
\examples\src\sheets\main.ts
with the following content and runsetupUniver()
multiple times in the console