Skip to content

Commit

Permalink
fix: plus / minus buttons now adhere to step value
Browse files Browse the repository at this point in the history
  • Loading branch information
cadriel committed Jan 21, 2021
1 parent 7cdbbbe commit 0ef8d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/inputs/InputSlider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<template v-slot:prepend>
<v-icon
:disabled="readonly || disabled || newValue === 0"
@click="clickChange(newValue - 1)"
@click="clickChange(newValue - step)"
color="grey lighten-2">
$minus
</v-icon>
Expand All @@ -59,7 +59,7 @@
<template v-slot:append>
<v-icon
:disabled="readonly || disabled || newValue === max"
@click="clickChange(newValue + 1)"
@click="clickChange(newValue + step)"
color="grey lighten-2">
$plus
</v-icon>
Expand Down

0 comments on commit 0ef8d4b

Please sign in to comment.