- Issue created by @pdureau
- π³πΏNew Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies β .
- Assigned to Grimreaper
- π¨π¦Canada Charlie ChX Negyesi πCanada
(if you need form API assistance message chx on Drupal Slack. Response times should be below 24 hours but usually below 4 hours.)
- Merge request !11345Draft: Issue #3494634 by pdureau, grimreaper: POC dummy approach: try to tell... β (Open) created by Grimreaper
- π«π·France Grimreaper France π«π·
Hello,
@ghost of drupal past, thanks for the proposal.
First POC, trying to tell Element::children to got looking into #slots if the element is a component make the form element inside the component to be prepared by the Form API, but:
- It remains duplicated on rendering (one textfield outside the component, one inside)
- The 2 elements have the same name attribute, so when submitting the form it is the element in the component which value is retrieved but I think it i only a side effect of having duplicated name.
- "parent" mechanism in the form API may be confused/malformed.
So next step will be to try to put slots as component element child and so adapt SDC (and later table element too).
- π«π·France pdureau Paris
But previous results makes this approach very side effect prone.
Yes, that sounds risky, but it worth to check.