Reimplement SaveButton disabled until input change

This commit is contained in:
leigh-mil
2019-06-13 14:34:55 -04:00
parent ab761d9d88
commit 5be4efb9d9
9 changed files with 323 additions and 267 deletions

View File

@@ -20,6 +20,10 @@ export default {
mindate: { type: String },
maxdate: { type: String },
nameTag: { type: String },
watch: {
type: Boolean,
default: false,
},
},
data: function() {
@@ -138,7 +142,11 @@ export default {
methods: {
_emitChange: function(name, value, valid) {
emitEvent('field-change', this, { value, name })
emitEvent('field-change', this, {
value: value,
name: name,
watch: this.watch,
})
},
},