Repository navigation
v1.0.12 - DOM-Based Watching for Flexible Fields
What's Changed
Fixed
- Fixed field change detection inside Flexible layouts where Nova events are not emitted
- Added DOM-based watching as fallback when Nova's global field-changed events don't fire
Added
setupDOMWatching(): Listen for native DOM change/input events on form elementsloadInitialValuesFromDOM(): Get field values directly from DOM elements at mount timefindFlexibleContainer(): Locate the Flexible layout wrapper elementhandleDOMChange(): Process native DOM change eventsMutationObserver: Detect dynamically added elements
Technical
- Fields inside nova-flexible-content don't emit to Nova's global event bus
- Now watches select/input/textarea elements directly via addEventListener
- Properly cleans up event listeners and MutationObserver on unmount
Installation
composer require iamgerwin/nova-dependency-container:^1.0.12
php artisan cache:clear
php artisan view:clearFull Changelog: v1.0.11...v1.0.12