Repository navigation
fix: retain reply editors when their margin card is hidden - #4404
Merged
Merged
Conversation
Reply handoffs used bare checkVisibility(), which treats visibility:hidden as visible. Use the shared drawn predicate for owner and destination readings so a responsive card hands its native editor to the panel and takes it back. This preserves the return-to-page behavior from #3855 without discarding caret or undo history. Closes #4239
# Conflicts: # dist/kernel/kernel.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A reply handoff treated a margin card hidden with
visibility: hiddenas still showing its editor: barecheckVisibility()ignores that property. The floating panel therefore took focus in a fresh mirror instead of carrying the native row, and returning to the card discarded the original editor. Reply handoffs now use the shareddrawnpredicate for both the current owner and destination views, preserving the editor, caret and undo history through the responsive transition intended by #3855.The existing responsive-draft journey fails on current main at the original-editor identity assertion and passes with this change, for both comment and reply variants. Seven related cases covering hidden subjects and transfers between diff seats and margin cards passed. All 673 runtime tests pass, and the kernel build/type check passes.
The on-screen card, reply words and focus keep their existing presentation; the corrected behavior retains the native editing session during the hidden-card/panel/card transition. A served
review-a-planstartup comparison keeps 31 code requests through widget upgrade and first server-state presentation; JavaScript decreases by 27 bytes, while total code bytes increase by 58 bytes. Both arms report no console errors or layout shifts. The fix adds no startup task or dependency.Closes #4239 — automated triage