Skip to content

Commit ac6b442

Browse files
authored
fix: Apply Flexible prefix to child field attributes for proper form submission (#14)
- 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
1 parent 4cc4adc commit ac6b442

3 files changed

Lines changed: 49 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
All notable changes to `nova-dependency-container` will be documented in this file.
44

5+
## [1.0.15] - 2025-11-25
6+
7+
### Fixed
8+
- Fixed child field values not being saved when NovaDependencyContainer is used inside nova-flexible-content layouts
9+
- Child fields now correctly receive the Flexible prefix (e.g., `cDsaj6Ub0m9hChBj__recipient_email`) for proper form data submission
10+
- Related to nova-flexible-content issue: https://github.com/whitecube/nova-flexible-content/issues/524
11+
12+
### Added
13+
- Added `applyFlexiblePrefixToChildFields()` method to automatically prefix child field attributes when inside a Flexible context
14+
- Child field attributes are now prefixed at mount time if a Flexible context is detected
15+
16+
### Technical
17+
- nova-flexible-content generates cryptic prefixes (e.g., `cDsaj6Ub0m9hChBj__`) for field attributes
18+
- NovaDependencyContainer's child fields were using unprefixed attributes, causing form data to be ignored by Flexible
19+
- The fix applies the detected Flexible prefix to all child field attributes before they render
20+
521
## [1.0.14] - 2025-11-25
622

723
### Fixed

0 commit comments

Comments
 (0)