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,6 +1,7 @@
import MaskedInput, { conformToMask } from 'vue-text-mask'
import inputValidations from '../lib/input_validations'
import { formatDollars } from '../lib/dollars'
import { emitFieldChange } from '../lib/emitters'
export default {
name: 'textinput',
@@ -131,7 +132,7 @@ export default {
}
// Emit a change event
this.$parent.$emit('field-change', {
emitFieldChange(this, {
value: this._rawValue(value),
name: this.name,
})