Skip to content

Commit

Permalink
fix: Do not make file row tabable if checkboxes for selecting are use…
Browse files Browse the repository at this point in the history
…d (except for entering directories)

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Aug 24, 2023
1 parent aa6ac5a commit 96bc972
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/FilePicker/FileListRow.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<template>
<tr :tabindex="showCheckbox && !isDirectory ? undefined : 0"
<tr :tabindex="(showCheckbox && !isDirectory) ? undefined : 0"
:aria-selected="!isPickable ? undefined : selected"
:class="['file-picker__row', {
'file-picker__row--selected': selected && !showCheckbox
}]"
@click="handleClick"
v-on="{
// same as tabindex -> if we hide the checkbox or this is a directory we need keyboard access to enter the directory or select the node
keydown: showCheckbox && !isDirectory ? null : handleKeyDown,
click: handleClick
keydown: (showCheckbox && !isDirectory) ? null : handleKeyDown
}">
<td v-if="showCheckbox" class="row-checkbox">
<NcCheckboxRadioSwitch :disabled="!isPickable"
Expand Down

0 comments on commit 96bc972

Please sign in to comment.