Skip to content

Commit

Permalink
fix: Select tile on enter
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Aug 31, 2023
1 parent 681dd41 commit 1235ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/components/NcTile/NcTile.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :tabindex="tabbable ? 0 : null" class="tile" :class="{active: localeActive}" @click="$emit('set-template')">
<div :tabindex="tabbable ? 0 : null" class="tile" :class="{active: localeActive}" @click="$emit('set-template')" @keyup.enter="$emit('set-template')">
<h3>{{ title }}</h3>
<p>{{ body }}</p>
</div>
Expand Down

0 comments on commit 1235ce5

Please sign in to comment.