fix: Child field values not saved in Flexible layouts (#4)#14
Merged
Conversation
…submission - Add applyFlexiblePrefixToChildFields() to prefix child field attributes - Child fields inside Flexible layouts now use correct prefixed attributes - Form data now properly includes prefixed keys like cDsaj6Ub0m9hChBj__recipient_email - Fixes field values not being saved in nova-flexible-content contexts Related: whitecube/nova-flexible-content#524
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
When NovaDependencyContainer was used inside a nova-flexible-content Flexible field:
cDsaj6Ub0m9hChBj__) for field attributesrecipient_emailcDsaj6Ub0m9hChBj__recipient_emailin the form dataSolution
Added
applyFlexiblePrefixToChildFields()method that:Changes
resources/js/components/FormField.vue: AddedapplyFlexiblePrefixToChildFields()methoddist/js/field.js: Rebuilt production assetsCHANGELOG.md: Added v1.0.15 release notesRelated
Test Plan