Skip to content

Commit

Permalink
fix(QRange): fix odd keydown behavior when on vertical mode (fix: #13132
Browse files Browse the repository at this point in the history
) (#14385)
  • Loading branch information
rstoenescu committed Sep 14, 2022
1 parent e8d602b commit 29be9f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/components/range/QRange.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,11 @@ export default createComponent({

const
stepVal = ([ 34, 33 ].includes(evt.keyCode) ? 10 : 1) * state.step.value,
offset = ([ 34, 37, 40 ].includes(evt.keyCode) ? -1 : 1) * (state.isReversed.value === true ? -1 : 1) * stepVal
offset = (
([ 34, 37, 40 ].includes(evt.keyCode) ? -1 : 1)
* (state.isReversed.value === true ? -1 : 1)
* (props.vertical === true ? -1 : 1) * stepVal
)

if (state.focus.value === 'both') {
const interval = model.value.max - model.value.min
Expand Down

0 comments on commit 29be9f7

Please sign in to comment.