Skip to content

Commit

Permalink
refactor: AppSlider emit from v-model refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Nov 11, 2022
1 parent f9cc1bd commit 9d662f5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/ui/AppSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ export default class AppSlider extends Mixins(StateMixin) {
this.overridden = false
this.internalMax = this.max
}
this.$emit('input', value)
}
}
Expand Down Expand Up @@ -219,7 +217,7 @@ export default class AppSlider extends Mixins(StateMixin) {
) {
if (this.valid) {
this.pending = true
this.$emit('change', value)
this.$emit('input', value)
} else {
this.internalValue = this.value
}
Expand All @@ -230,7 +228,7 @@ export default class AppSlider extends Mixins(StateMixin) {
handleReset () {
this.internalValue = this.resetValue
this.lockState = this.locked
this.$emit('change', this.resetValue)
this.$emit('input', this.resetValue)
}
}
</script>
Expand Down

0 comments on commit 9d662f5

Please sign in to comment.