Create emitter function for field-change event

This commit is contained in:
leigh-mil
2019-11-13 16:42:03 -05:00
parent bc0382834b
commit 04b9250ea1
9 changed files with 24 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import { emitEvent } from '../lib/emitters'
import { emitFieldChange, emitEvent } from '../lib/emitters'
import optionsinput from './options_input'
import textinput from './text_input'
import clindollaramount from './clin_dollar_amount'
@@ -98,7 +98,7 @@ export default {
} else if (event && event.name.includes(NUMBER)) {
this.clinNumber = event.value
}
this.$parent.$emit('field-change')
emitFieldChange(this)
},
removeClin: function() {