Skip to content

fix: namespace repeated layout element ids - #370

Open
han4wluc wants to merge 1 commit into
mainfrom
fix/layout-instance-ids
Open

han4wluc wants to merge 1 commit into
mainfrom
fix/layout-instance-ids

Conversation

@han4wluc

Copy link
Copy Markdown
Contributor

Rendering one authored layout in two places at once (as the main layout and as an overlay, or as a background and as the dialogue layout) produces elements with duplicate IDs.

Reproduce: render the same layout as the main layout and as an overlay (regression tests).

Fix: IDs are preserved for a single instance; when authored elements recur across rendered instances, each gets a stable unique ID.

Tests: main-plus-overlay and background-plus-dialogue cases, including stability across renders and immutability of the source; the full suite (2,164 tests) and lint pass.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant