Skip to content

fix(html-viewer): treat a collapsed live Range as dead so text annotations re-anchor - #4138

Merged
backnotprop merged 1 commit into
backnotprop:mainfrom
cognirail:justin/fix-range-alive-collapsed
Nov 28, 2026
Merged

backnotprop merged 1 commit into
backnotprop:mainfrom
cognirail:justin/fix-range-alive-collapsed

Conversation

@HaloXie

@HaloXie HaloXie commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Pages that detach and re-attach nodes (virtualized docs such as Feishu) collapse
the stored Range onto the still-connected parent. rangeAlive() saw connected
containers and kept the empty range, so the highlight vanished after scrolling
away and back and the text re-search never ran.

Supersedes #4136, which was opened from our long-lived development branch and picked up unrelated commits.

…tions re-anchor

Pages that detach and re-attach nodes (virtualized docs such as Feishu) collapse
the stored Range onto the still-connected parent. rangeAlive() saw connected
containers and kept the empty range, so the highlight vanished after scrolling
away and back and the text re-search never ran.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants