Skip to content

Commit

Permalink
Use space for toggeling checkboxes
Browse files Browse the repository at this point in the history
Using enter inteferes with norms editable list.

Addresses RISDEV-2948
  • Loading branch information
zechmeister committed Dec 18, 2023
1 parent af8759e commit 55d8e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/shared/components/input/CheckboxInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ const isInvalid = computed(() => props.validationError !== undefined)
class="ds-checkbox"
:class="{ 'has-error': isInvalid, 'ds-checkbox-small': size === 'small' }"
type="checkbox"
@keydown.enter="localModelValue = !localModelValue"
@keydown.space="localModelValue = !localModelValue"
/>
</template>

0 comments on commit 55d8e94

Please sign in to comment.