Skip to content

Commit

Permalink
fix: toggling checkboxes via enter key
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Stehle committed Aug 1, 2024
1 parent 389a1c1 commit fb80b52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-resource-table-keyboard-checkbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Toggling checkboxes via keyboard

Toggling checkboxes via the keyboard enter key in the resources table has been fixed and does now work.

https://github.com/owncloud/web/pull/11312
https://github.com/owncloud/web/issues/10730
10 changes: 5 additions & 5 deletions packages/web-pkg/src/components/FilesList/ResourceTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
:label="allResourcesCheckboxLabel"
:hide-label="true"
:model-value="areAllResourcesSelected"
@update:model-value="toggleSelectionAll"
@click.stop.prevent="toggleSelectionAll"
/>
</div>
</template>
Expand All @@ -56,8 +56,7 @@
size="large"
:model-value="isResourceSelected(item)"
:outline="isLatestSelectedItem(item)"
@update:model-value="setSelection($event, item)"
@click.stop="fileClicked([item, $event, true])"
@click.stop.prevent="toggleSelection(item.id)"
/>
</template>
<template #name="{ item }">
Expand Down Expand Up @@ -483,9 +482,10 @@ export default defineComponent({
resourceType: {
type: String as PropType<'file' | 'space'>,
default: 'file'
} /**
},
/**
* Determines if the table content should be loaded lazily.
*/,
*/
lazy: {
type: Boolean,
default: true
Expand Down

0 comments on commit fb80b52

Please sign in to comment.