From abd5085329985edb02cd9b70243a05ed76baaf8e Mon Sep 17 00:00:00 2001 From: Adam DeHaven Date: Tue, 19 Dec 2023 22:10:56 -0500 Subject: [PATCH] fix: button actions --- src/components/MarkdownToolbar.vue | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/src/components/MarkdownToolbar.vue b/src/components/MarkdownToolbar.vue index ba4b57c4..6d97c623 100644 --- a/src/components/MarkdownToolbar.vue +++ b/src/components/MarkdownToolbar.vue @@ -8,19 +8,22 @@ @@ -34,7 +37,8 @@ :key="option.label" :aria-label="option.label" :data-testid="`format-option-${option.action}`" - @mousedown.prevent="emit('format-selection', option.action)" + :tabindex="0" + @click.prevent="emit('format-selection', option.action)" > {{ option.label }} @@ -46,7 +50,8 @@ :key="option.label" :aria-label="option.label" :data-testid="`template-option-${option.action}`" - @mousedown.prevent="emit('insert-template', option.action)" + :tabindex="0" + @click.prevent="emit('insert-template', option.action)" > {{ option.label }} @@ -60,14 +65,16 @@ @@ -76,6 +83,7 @@