Skip to content

Commit 7fb1a2a

Browse files
committed
fix: reset selectedIndex on esc
1 parent a72ddb6 commit 7fb1a2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/Chart/SplitSparkline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const configs = computed(() => {
183183
<div>
184184
<div class="grid gap-8 sm:grid-cols-2">
185185
<ClientOnly v-for="(config, i) in configs" :key="`config_${i}`">
186-
<div @mouseleave="resetHover" class="w-full max-w-[400px] mx-auto">
186+
<div @mouseleave="resetHover" @keydown.esc="resetHover" class="w-full max-w-[400px] mx-auto">
187187
<div class="flex gap-2 place-items-center">
188188
<div class="h-3 w-3">
189189
<svg viewBox="0 0 2 2" class="w-full">

0 commit comments

Comments
 (0)