Skip to content

[0.42-r2 M4] forms inside late-hydrating (idle/visible) islands never get the enhancement listener #584

Description

@SisyphusZheng

Severity: medium · Category: implementation bug

Evidence. __scanSubmitRoots runs at ready and after morphs. client:idle/client:visible islands create their shadow roots AFTER the ready scan; an enhanced form inside such an island has no submit listener and always posts natively.

Fix. After each island module load resolves, schedule a rescan (setTimeout 0) so newly-upgraded shadow roots get the listener.


Filed from the 0.42 round-2 review (docs/audit/2026-07-28-alpha5-round2-review.md). Target line: 0.42.0-alpha.6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.42.0-alpha.60.42 round-2 review remediation (morph client hardening)bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions