Skip to content
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: highlight wrapper inside another wrapper not get updated when deleting #80

Merged
merged 1 commit into from
Jun 18, 2021

Conversation

ruanyl
Copy link
Contributor

@ruanyl ruanyl commented Jun 7, 2021

When doing a multi-color highlight, a highlight(A) created inside another
highlight(B) is not get updated when deleting highlight(A). Though the
highlight id is updated, the classLst is not synced with highlight(B)
which makes it feel like it's not get deleted.

This commit will make it to retain the wrapper classList which associated
with the "extra id".

related issue: #58

deleting

When doing multi-color highlight, a highlight(A) created inside another
highlight(B) is not get updated when deleting highlight(A). Though the
highlight id is updated, but class list is not synced with highlight(B)
which makes it to feel like it's not get deleted.

This commit will make it to retain the wrapper classList which associated
with the "extra id".

related issue: alienzhou#58
@ruanyl
Copy link
Contributor Author

ruanyl commented Jun 7, 2021

Untitled

This is the problem this PR trying to resolve, as you can see in the screenshot when doing highlight separately, deletion works perfectly. But when doing highlight inside another wrapper, deleting the inner highlight doesn't seem to work.

The highlight id has been updated in factor, but just the class list did not get synced.

@ruanyl
Copy link
Contributor Author

ruanyl commented Jun 14, 2021

@alienzhou Much appreciate it if you could have a look at this PR and #81

@alienzhou
Copy link
Owner

Sorry for the late reply. I'm a little busy these days. 😳

I'll check it out soon on this weekend.

@alienzhou alienzhou merged commit 93a6e26 into alienzhou:master Jun 18, 2021
alienzhou added a commit that referenced this pull request Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants