Repository navigation
v1.0.14
Summary
Fixed dependent field values not being saved when the form is submitted.
Fixed
- Dependent field values not being saved on form submission (Vue 3 ref pattern)
- The previous fix in v1.0.13 used dynamic string refs which don't work reliably in Vue 3 v-for loops
Changed
- Switched from dynamic string refs to Vue 3 function refs
- Added fieldRefs data property to store child field component references
- Added setFieldRef() method to properly collect and manage child component refs
- Updated fill() method to use the new fieldRefs object for accessing child components
- Added cleanup for fieldRefs in beforeUnmount lifecycle hook
Technical
- Vue 3 requires function refs when using dynamic ref names in v-for loops
- Dynamic string refs create arrays but are unreliable to access via $refs[key]
- Function refs provide direct access to component instances
Full Changelog: v1.0.13...v1.0.14