Repository navigation
fix(ui): keep overlays and CAccordion working with children-first onServerRender - #675
Merged
Merged
Conversation
…erverRender Since #651, Citry runs onServerRender callbacks after a server render with children before their parent, after every cleanup has run. Several Citry UI components relied on the parent's callback running first: - CDatePicker, CDateRange and CTimePicker un-enhanced their control in the cleanup, which hid the trigger of their CPopover, so the popover's earlier callback force-closed it. Their cleanup now keeps the control enhanced on a server-render handoff, and the popup stays closed while the server has just disabled the picker and the picker has not run yet. - An open CPopover hid its surface in the cleanup, so a layer nested inside it closed. It now stays showing and registered until its next run takes it over. - CAccordion applied item state before detecting removed items, so it skipped the removal report and the focus fallback. It reconciles the items first. - A CDialog, CDrawer or CCommandPalette opened inside a dialog that the same render opens now waits until that dialog is modal, so it opens on top. CDrawer watches every ancestor's attributes, and the palette joins the shared dialog list, so closing the outer one closes them. The JavaScript asset budgets rise to fit the added code. Co-Authored-By: Claude Opus 5.5 <[email protected]>
JuroOravec
force-pushed
the
fix/651-overlay-rerender
branch
from
November 14, 2026 19:40
e6db264 to
698fbe6
Compare
This was referenced Nov 14, 2026
JuroOravec
added a commit
that referenced
this pull request
Nov 14, 2026
…ight merged changes (#682) Add one record under docs/security/reviews/ for each of the eight published 0.8.0 advisories (GHSA-4hj5, -8xvf, -7qpw, -g658, -x6rm, -h524, -xmx5, -xg8c) and for each of the pull requests that Mechanism 7, step 7 owes one: #610, #640, #651, #652, #653, #658, #674 and #675. Each record says only what the public pull request, the published advisory, the merged code and its tests show, and lists what was not checked. The reviews README describes how a record for a published advisory differs from a pull request record. The Mechanism 7 list in CLAUDE.md gains the two places that GHSA-7qpw added: parser rules browsers differ on, and the page's declared encoding. Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Since #651, Citry runs
onServerRendercallbacks after a server render with children before their parent, after every cleanup has run. This order is documented and stays. Several Citry UI components were written for the parent-first order, and 21 cases in thee2ejob have failed onmainsince then. This PR fixes the components, not the tests.What went wrong, and the fix
data-enhanced, which hid the trigger of its childCPopover. The popover's callback now runs first, so it saw a hidden trigger and force-closed with reason"ancestor". That also explains the'ancestor'instead of'disabled'in the disable test. The picker's cleanup now accepts{handoff: true}and keeps the control enhanced on a server render. A small*AwaitingRunflag keeps the popup closed between the cleanup and the picker's own run when the server has just disabled the picker, so the popup does not flash open and then close.reconcileStructurecould see which items were removed, and it skipped the removal report and the focus fallback. It now applies no item state until it has reconciled, and it reconciles right away when items are already registered.openattribute. The inner one then entered the top layer first, or the outerCDrawerrefused to open. The inner one now waits, one task at a time, until the enclosing dialog is modal, with a counter that cancels a stale retry. Separately,CDrawerwatched only its host's attributes, because a secondobserve()call on a node replaced the first call's options. It now watches every ancestor. The palette also joins the shared dialog list while it is open, so a closingCDrawercloses it.Checked
citry-core==1.9.1:citry-lsp;Not in this PR
data-disabledbefore the group runs;enclosingDialogWaitexists both in the dialog controller and in CDrawer.Security: this changes only component browser code (overlay open state, top-layer order, layer registration, timers). No value from data reaches a new place in the page. An independent reviewer confirmed this and checked the advisory survey's DOM-clobbering, prototype, hydration and denial-of-service kinds.
🤖 Generated with Claude Code