1
0
mirror of synced 2024-11-22 05:16:05 +03:00

Fixes reactivity issue for mergedInitials

This commit is contained in:
Justin Schroeder 2018-02-16 14:29:41 -05:00
parent eb4813acca
commit daef2b8a2b
2 changed files with 3 additions and 3 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@
</template>
<script>
import {equals} from '../utils'
import {equals, reduce} from '../utils'
import cloneDeep from 'clone-deep'
export default {
@ -115,7 +115,7 @@ export default {
this.updateFormValidation()
},
setInitial (field, value) {
this.fieldInitials[field] = value
this.fieldInitials = Object.assign({}, this.fieldInitials, {[field]: value})
},
update (change) {
this.$store.commit(`${this.m}setFieldValue`, Object.assign(change, {