Update TO form and nested components to emit directly to parent components instead of emitting from the root component
This commit is contained in:
parent
f40ce3d1aa
commit
d1e1a2a36a
@ -34,6 +34,18 @@ export default {
|
|||||||
this.validateForm()
|
this.validateForm()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
handleChildFieldChange: function(event) {
|
||||||
|
// need to temporarily use this function because we will no longer be passing
|
||||||
|
// parent_uid or watch from the child components
|
||||||
|
const { value, name, valid } = event
|
||||||
|
if (typeof this.fields[name] !== undefined) {
|
||||||
|
this.fields[name] = valid
|
||||||
|
this.changed = true
|
||||||
|
}
|
||||||
|
|
||||||
|
this.validateForm()
|
||||||
|
},
|
||||||
|
|
||||||
handleFieldMount: function(event) {
|
handleFieldMount: function(event) {
|
||||||
const { name, optional, valid } = event
|
const { name, optional, valid } = event
|
||||||
this.fields[name] = optional || valid
|
this.fields[name] = optional || valid
|
||||||
|
Loading…
x
Reference in New Issue
Block a user