Skip to content

Commit 9d662f5

Browse files
committed
refactor: AppSlider emit from v-model refactor
Signed-off-by: Pedro Lamas <[email protected]>
1 parent f9cc1bd commit 9d662f5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/ui/AppSlider.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ export default class AppSlider extends Mixins(StateMixin) {
168168
this.overridden = false
169169
this.internalMax = this.max
170170
}
171-
172-
this.$emit('input', value)
173171
}
174172
}
175173
@@ -219,7 +217,7 @@ export default class AppSlider extends Mixins(StateMixin) {
219217
) {
220218
if (this.valid) {
221219
this.pending = true
222-
this.$emit('change', value)
220+
this.$emit('input', value)
223221
} else {
224222
this.internalValue = this.value
225223
}
@@ -230,7 +228,7 @@ export default class AppSlider extends Mixins(StateMixin) {
230228
handleReset () {
231229
this.internalValue = this.resetValue
232230
this.lockState = this.locked
233-
this.$emit('change', this.resetValue)
231+
this.$emit('input', this.resetValue)
234232
}
235233
}
236234
</script>

0 commit comments

Comments
 (0)