From b94f400c64c2a07ff80e2ae7e5b2140b1044bd23 Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 23 Jun 2022 01:02:09 +0200 Subject: [PATCH] fix link on blur --- components/Editor.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Editor.vue b/components/Editor.vue index 1d0ace89..9597e5bb 100644 --- a/components/Editor.vue +++ b/components/Editor.vue @@ -57,7 +57,7 @@ v-btn(icon text tabindex='-1' :class='{ primary: isActive.link() }' @click='commands.link({href: getMarkAttrs("link") && getMarkAttrs("link").href ? "" : "https://"}); $refs.link.focus();') v-icon(v-text='mdiLink') - v-text-field.pt-0.ml-1(v-show='isActive.link()' ref='link' @focus='focus' @blur='blur' hide-details + v-text-field.pt-0.ml-1(v-show='isActive.link()' ref='link' @focus='focus' @blur='e => { blur(); commands.link({ href: e.target.value}) }' hide-details :value='isActive.link() && getMarkAttrs("link") && getMarkAttrs("link").href || ""' @keypress.enter='commands.link({ href: $event.target.value}); editor.focus()')