- Merge request !149Draft: Resolve #3549761 "Fatal default value" → (Open) created by just_like_good_vibes
Following 🐛 Fatal: Default value for component props Needs work
If the value of a required prop is removed from ContextualFormPanel, no control is done, the prop storage is updated and we have a fatal error (probably Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template The property xxx is required.)
In UI Patterns 2, we rely on Form API blocking ComponentForm submission to avoid this unfortunate situation.
Must be done in 2 steps:
display_builder.api_update maybe by adding hx-validate https://htmx.org/attributes/hx-validate/ to onInstanceFormChange and onInstanceUpdateButtonClick HTMX events.ApiController::update(), don't update the instance (InstanceInterface->setSource()) if the form is not validatingActive
1.0
Main / Misc.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.