LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 23, 2026, 2:30 AM
updatedAtNov 23, 2026, 3:16 AM
githubUrlhttps://github.com/neomjs/neo/issues/22055
authorneo-gemini-julia
commentsCount0
parentIssue21959
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 3:16 AM

Dialog#initVnode reverts off-screen parking and returns super payload

Closed v14.0.0/archive-v14-0-0-chunk-7 bugairegressioncore
neo-gemini-julia
neo-gemini-julia commented on Nov 23, 2026, 2:30 AM

Context

Splits the engine-only Neo.dialog.Base#initVnode slice out of #21959 per @neo-gpt-sophie's RA-2 on first-time contributor PR #21991 (@theguysudo) and @neo-gpt-emmy's handoff confirmation (https://github.com/neomjs/neo/pull/21991#issuecomment-7089047751), so #21991 resolves a 1:1 close target ahead of the 2026-11-23 07:00 UTC Engine 14 examples lock while #21959 remains open for the remaining editor witness and examples/covers criteria (#21942).

  • Live latest-open + closed sweep: checked latest 20 open (49 open, orange band; sub-issue split under #21959) + open and closed search (dialog initVnode animateTargetId off-screen, dialog initVnode animateTargetId, #4548 & #21959 read) at 2026-11-23T01:29:00Z; no duplicate narrow engine leaf exists.
  • A2A in-flight claim sweep: checked latest 30 messages across all read states (2026-11-23T01:02Z–01:28Z); no overlapping claim on src/dialog/Base.mjs.
  • MC sweep: dialog Base initVnode animateTargetId wrapperStyle offscreen return super, 5 results, no conflicting decision.
  • Own-assignment sweep: 2 open (#22051 in review via #22054, #21847 post-cut live verification), none overlapping.
  • Ownership: handoff: @theguysudo (active contributor PR #21991; maintainer release-cut finish directed by @tobiu per pull-request-workflow.md §10, self-assigned to @neo-gemini-julia as maintainer sponsor).

The Problem

Commit 1dced6c8c8 (#7147) renamed VdomLifecycle#render to initVnode, leaving Neo.dialog.Base's off-screen wrapper reset (wrapperStyle.left = 'initial', wrapperStyle.top = 'initial' when !me.animateTargetId) on the dead render(mount) method (src/dialog/Base.mjs:1128-1147). Any dialog shown without an animateTargetId via show() -> initVnode(true) remained parked off-screen at -10000px behind its modal mask. In addition, renaming the override to async initVnode(mount) must return super.initVnode(mount) rather than discarding its {vnode, ...} payload (src/mixin/VdomLifecycle.mjs:849-851).

The Architectural Reality

  • Design authority: "Creates the vnode tree for this component and mounts the component... If getting there, we return the data from vdom.Helper: create(), containing the vnode." (src/mixin/VdomLifecycle.mjs:840-850) and "If there is no animation target, we need to ensure that the initial offscreen positioning from .neo-floating gets reverted" (src/dialog/Base.mjs:1135).
  • src/component/Base.mjs:2022: show() invokes me.startMountFlight(me.initVnode(true)) when !me.vnode && !me.vnodeInitialising.
  • src/dialog/Base.mjs:1128-1150: initVnode(mount) reverts wrapperStyle.left and wrapperStyle.top to 'initial' when !me.animateTargetId and delegates to super.initVnode(mount).

The Fix

  1. Rename Neo.dialog.Base#render(mount) to async initVnode(mount) in src/dialog/Base.mjs and return super.initVnode(mount) so awaiting callers receive the superclass {vnode, ...} payload.
  2. Cover both !animateTargetId and animateTargetId paths plus the returned superclass {vnode} payload (stubbed and real initVnode(false)) in test/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs.

Decision Record impact

none — restores Neo.dialog.Base lifecycle override parity after #7147.

Acceptance Criteria

  • A Neo.dialog.Base without animateTargetId reverts wrapperStyle.left and wrapperStyle.top to 'initial' on initVnode(), while a dialog with animateTargetId preserves its off-screen parking until animation (test/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs, red on dev).
  • Neo.dialog.Base#initVnode(mount) returns the superclass super.initVnode(mount) payload containing vnode in both stubbed lifecycle assertions and a direct unstubbed dialog.initVnode(false) call (test/playwright/unit/dialog/ShowWithoutAnimateTarget.spec.mjs).

Out of Scope

  • Remaining #21959 criteria: the openEventEditor(id) / openTaskEditor(id) no-rendered-bar unit witness (AC-2 of #21959) and the examples/scheduler/eventEditor + examples/gantt/taskEditor open-on-load frames, lookFor copy, neomjs/pages cover pairs, and design read (AC-3..AC-7 of #21959, actively coordinated with @neo-gpt-emmy under #21942).

Avoided Traps

  • await super.initVnode(mount) without return: Drops the {vnode, ...} payload promised by VdomLifecycle#initVnode (RA-1 on #21991).
  • Closing #21959 from an engine-only PR: Orphans AC-2..AC-7 before the two editor examples and covers land (RA-2 on #21991).

Related

Origin Session ID: 12bb6bb7-21ca-4b36-824f-66ea4320e1d8 Retrieval Hint: "Dialog Base initVnode animateTargetId wrapperStyle offscreen return super payload 21991 21959"