File tree Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Expand file tree Collapse file tree 4 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ## 2.5.2
2+
3+ ### Fixed
4+
5+ - Reinitialization for Array values
6+
17## 2.5.1
28
39### Fixed
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ See demo at [https://detools.github.io/vue-form](https://detools.github.io/vue-f
7979
8080## Changelog
8181
82+ - [ 2.5.2] ( /CHANGELOG.md#252 )
8283- [ 2.5.1] ( /CHANGELOG.md#251 )
8384- [ 2.5.0] ( /CHANGELOG.md#250 )
8485- [ 2.4.2] ( /CHANGELOG.md#242 )
Original file line number Diff line number Diff line change @@ -270,7 +270,10 @@ export default {
270270 } ,
271271
272272 reinitializeValues ( updatedInitialValues ) {
273- this . state = mapValues ( this . state , ( value , key ) => updatedInitialValues [ key ] )
273+ this . state = mapValues (
274+ this . state ,
275+ ( value , key ) => isNil ( updatedInitialValues [ key ] ) || ( Array . isArray ( value ) ? [ ] : undefined )
276+ )
274277 this . syncErrors = { }
275278 this . asyncErrors = { }
276279 this . touchedFields = { }
Original file line number Diff line number Diff line change 11{
22 "name" : " @detools/vue-form" ,
3- "version" : " 2.5.1 " ,
3+ "version" : " 2.5.2 " ,
44 "description" : " Form State Management for VueJS" ,
55 "main" : " VueForm/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments