2👍
✅
I’m having a bit of a hard time following, but if you wanted to run two functions on the same event you can just do two things in one function.
@input="update"
Then something like:
update: function (event) {
this.updateValue(event.target.value)
this.somethingElse()
}
Though, if the code you have is really what you’re trying to do you can do:
this.$emit('input', this.uppercase(value))
After discussing a bit more in the comments. You can pass a custom callback as a property if you’d like and call that instead of whatever the default is. Here’s a quick fiddle of one way to approach that: https://jsfiddle.net/crswll/3xwmgpom/
Source:stackexchange.com