Prop/slot nested in another component with same prop/slot name confuses XB

Created on 18 September 2024, 6 months ago

Overview

I searched the queue and didn't see anything obvious, but I've run into this a few times. I'm not sure what the title of this should be, so maybe someone can come up with something better :)

Here's an example:

  • Component one with prop called "summary" and slot called "content"
  • Component two with prop called "summary" and slot called "content"
  • Drag component one to desktop, edit summary, no problem
  • Drag component two into component one's slot, doesn't work (can't remember if the prop form doesn't show up or the form just doesn't work... and I'm too tired to try it right now)

I got around these in a couple places by renaming props/slots, so there would be no nested ones with the same names.

Proposed resolution

TBD

User interface changes

πŸ› Bug report
Status

Active

Component

Page builder

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

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

Comments & Activities

  • Issue created by @Kristen Pol
  • πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Sorry for the lack of detail, but I wanted to at least capture this before I forgot about it with the flurry of DrupalCon.

  • Assigned to jessebaker
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    Reminds me of the known problems wrt the XB (JS) UI having made name a reserved name, see this in the current codebase:

    // @todo the current quick-and-dirty UI PoC unfortunately prevents any prop from being named `name`, because it expects that to convey the component name β€” but it's not actually one of the props consumed by the SDC.
    

    @jessebaker and I will dig into that problem space after DrupalCon.

  • Issue was unassigned.
  • Status changed to Closed: outdated 6 days ago
  • πŸ‡¬πŸ‡§United Kingdom jessebaker

    I think this probably got solved along the way as I can't reproduce this nor see anything not working.

Production build 0.71.5 2024