Default values from parent properties in nested components are not used until the component is first edited


As mentioned here:

Testing the beta confirmed this behaviour. The value is applied, but only after it is first edited, either from the nested component or the parent component. Initially no value is shown.

Step-by-step reproduction instructions:

  1. Open the Post Editor/Site Editor
  2. Add a component containing a div
  3. Create a text property for it called “Rabbit” with a default value
  4. Add a nested component containing a heading
  5. Create a text property for it called “Hole” with no default value
  6. Connect the “Hole” property to the content of the Heading
  7. Connect the parent “Rabbit” property to the “Hole” property
  8. Note that the default value is not propagated to the content of the heading

Environment info

  • WordPress version: 6.2.2
  • Cwicly Plugin version: 1.3-beta

Hi @StrangeTech,

Thanks for taking the time to report and detail this bug!

I can confirm this behaviour on my end.

We’ll be sure to have this fixed for the next beta.

Thank you for taking the time to report this, @StrangeTech!

This should now be fixed with 1.3-beta2.

Please don’t hesitate to let us know if you experience any more trouble with this, by responding to this thread.

Awesome, thank you @Araminta, I will test this as soon as I have time.

1 Like