From f47502ade14f87e19e4e96a6faf3ba53992c593c Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Mon, 26 Aug 2019 16:38:33 +0100 Subject: [PATCH] survive empty urls --- webapp/components/Editor/ContextMenu.vue | 5 +++-- webapp/components/Editor/Editor.vue | 16 +++++++--------- webapp/components/Editor/LinkInput.vue | 16 ++++++++++++---- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/webapp/components/Editor/ContextMenu.vue b/webapp/components/Editor/ContextMenu.vue index 487920d2b..46ed38097 100644 --- a/webapp/components/Editor/ContextMenu.vue +++ b/webapp/components/Editor/ContextMenu.vue @@ -19,7 +19,7 @@ export default { arrow: true, arrowType: 'round', content: content, - // duration: [400, 200], + duration: [400, 200], inertia: true, interactive: true, placement: 'top-start', @@ -27,9 +27,10 @@ export default { theme: 'dark', trigger, onMount(instance) { - instance.popper.querySelector('input').focus() + instance.popper.querySelector('input').focus({ preventScroll: true }) }, }) + // we have to update tippy whenever the DOM is updated if (MutationObserver) { this.observer = new MutationObserver(() => { diff --git a/webapp/components/Editor/Editor.vue b/webapp/components/Editor/Editor.vue index 168e2e732..98b42809c 100644 --- a/webapp/components/Editor/Editor.vue +++ b/webapp/components/Editor/Editor.vue @@ -14,7 +14,6 @@ @@ -16,10 +15,19 @@