Skip to content

[6.x] Inertia user addresses#19194

Draft
riasvdv wants to merge 1 commit into
6.xfrom
feature/inertia-user-addresses
Draft

[6.x] Inertia user addresses#19194
riasvdv wants to merge 1 commit into
6.xfrom
feature/inertia-user-addresses

Conversation

@riasvdv

@riasvdv riasvdv commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Ports user addresses as a small Inertia wrapper around the legacy NestedElementManager.

Fixes / adapts a few bridges between Inertia and old JS code:

  • Separated root CP assets from Inertia page-specific legacy assets in CpScreenResponse.
  • Flushed global CP assets before buffering Inertia page assets, so jQuery, Craft, and Craft.NestedElementManager exist before page boot scripts run.
  • Captured page-specific headHtml / bodyHtml and passed them as Inertia props.
  • Made useAppendHtml() append after Vue’s DOM flush with nextTick + flush: 'post', so v-html content exists before new Craft.NestedElementManager(...) runs.
  • Added the legacy .action-btn class back onto generated element action menu triggers, so NestedElementManager.initElement() can find and wire the three-dots menu.
  • Fixed CP.js copy callbacks with for (const callback of ...), so the nested manager’s Copy/Paste update path doesn’t throw under strict execution.

@riasvdv riasvdv force-pushed the feature/inertia-user-addresses branch from db5ca4e to 595679a Compare July 2, 2026 13:23
Base automatically changed from feature/inertia-user-preferences to feature/inertia-user-permissions July 2, 2026 15:10
Base automatically changed from feature/inertia-user-permissions to 6.x July 3, 2026 19:05
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