ApiLayoutController::getRegionForComponentInstance doesn't work well with nested components if there are multiple regions.

Created on 9 July 2025, about 1 month ago

Overview

We recently faced an issue where we couldn't use nested components in an XB page that has multiple regions.

Steps to reproduce

  1. Have multiple regions set up.
  2. Place two components one with a prop and another one with a slot in a component with slots.
  3. Place another component with a prop inside the nested component.
  4. Fill the value of prop in first component. This one works.
  5. Fill the value of prop in 2nd component.(The one in nested component).
  6. See that the network call for this last one fails with 5xx error.

Expected result

Nested components should work well.

This fails at ApiLayoutController::267 because `$regionForComponentId` is null and it's not able to get the region even though content region exists under which this component is placed.

Proposed resolution

User interface changes

🐛 Bug report
Status

Active

Version

0.0

Component

… to be triaged

Created by

🇮🇳India amangrover90

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024