Skip to content

Commit f500c5b

Browse files
authored
fix(VListItem): keyboard navigation when list contains checkboxes (#21701)
fixes #21516
1 parent 23dfbb4 commit f500c5b

File tree

1 file changed

+5
-1
lines changed
  • packages/vuetify/src/components/VList

1 file changed

+5
-1
lines changed

packages/vuetify/src/components/VList/VList.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,11 @@ export const VList = genericComponent<new <
221221
function onKeydown (e: KeyboardEvent) {
222222
const target = e.target as HTMLElement
223223

224-
if (!contentRef.value || ['INPUT', 'TEXTAREA'].includes(target.tagName)) return
224+
if (!contentRef.value ||
225+
(target.tagName === 'INPUT' && ['Home', 'End'].includes(e.key)) ||
226+
target.tagName === 'TEXTAREA') {
227+
return
228+
}
225229

226230
if (e.key === 'ArrowDown') {
227231
focus('next')

0 commit comments

Comments
 (0)