From 909c717dbe95bcf8ebac7cf3533a557e587706ff Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Thu, 1 Aug 2024 14:57:22 +0200 Subject: [PATCH] fix: toggling checkboxes via enter key Follow-up of #11312: fixes all checkboxes in Web by adjusting the `OcCheckbox` component. The enter press event did not set any value, which was the issue. --- ...-keyboard-checkbox => bugfix-keyboard-checkbox-toggle} | 3 ++- .../src/components/OcCheckbox/OcCheckbox.vue | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) rename changelog/unreleased/{bugfix-resource-table-keyboard-checkbox => bugfix-keyboard-checkbox-toggle} (51%) diff --git a/changelog/unreleased/bugfix-resource-table-keyboard-checkbox b/changelog/unreleased/bugfix-keyboard-checkbox-toggle similarity index 51% rename from changelog/unreleased/bugfix-resource-table-keyboard-checkbox rename to changelog/unreleased/bugfix-keyboard-checkbox-toggle index 5257a77e391..a96013050f2 100644 --- a/changelog/unreleased/bugfix-resource-table-keyboard-checkbox +++ b/changelog/unreleased/bugfix-keyboard-checkbox-toggle @@ -1,6 +1,7 @@ Bugfix: Toggling checkboxes via keyboard -Toggling checkboxes via the keyboard enter key in the resources table has been fixed and does now work. +Toggling checkboxes via the keyboard enter key has been fixed and does now work. https://github.com/owncloud/web/pull/11312 +https://github.com/owncloud/web/pull/11315 https://github.com/owncloud/web/issues/10730 diff --git a/packages/design-system/src/components/OcCheckbox/OcCheckbox.vue b/packages/design-system/src/components/OcCheckbox/OcCheckbox.vue index 622b41e13b9..f899b10b28d 100644 --- a/packages/design-system/src/components/OcCheckbox/OcCheckbox.vue +++ b/packages/design-system/src/components/OcCheckbox/OcCheckbox.vue @@ -8,7 +8,7 @@ :class="classes" :value="option" :disabled="disabled" - @keydown.enter="$emit('click', $event)" + @keydown.enter="keydownEnter" />