From aecb707af1c91053f588500a671772f0b68e7a56 Mon Sep 17 00:00:00 2001 From: Popescu Dan Date: Sun, 8 Jan 2023 10:13:09 +0200 Subject: [PATCH] fix(QRating): fix kbd navigation #15235 (#15237) --- ui/src/components/rating/QRating.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/rating/QRating.js b/ui/src/components/rating/QRating.js index 01b641cafe5..d9a73d28eaf 100644 --- a/ui/src/components/rating/QRating.js +++ b/ui/src/components/rating/QRating.js @@ -216,13 +216,13 @@ export default createComponent({ case 37: // LEFT ARROW case 40: // DOWN ARROW if (iconRefs[ `rt${ i - 1 }` ]) { - iconRefs[ `rt${ i - 1 }` ].$el.focus() + iconRefs[ `rt${ i - 1 }` ].focus() } return stopAndPrevent(e) case 39: // RIGHT ARROW case 38: // UP ARROW if (iconRefs[ `rt${ i + 1 }` ]) { - iconRefs[ `rt${ i + 1 }` ].$el.focus() + iconRefs[ `rt${ i + 1 }` ].focus() } return stopAndPrevent(e) } @@ -245,7 +245,7 @@ export default createComponent({ child.push( h('div', { key: i, - ref: vm => { iconRefs[ `rt${ i }` ] = vm }, + ref: el => { iconRefs[ `rt${ i }` ] = el }, class: 'q-rating__icon-container flex flex-center', ...attrs, onClick () { set(i) },