diff --git a/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/EditorToolbar.vue b/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/EditorToolbar.vue index 41e6f73add..0abd2b3f7c 100644 --- a/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/EditorToolbar.vue +++ b/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/EditorToolbar.vue @@ -535,7 +535,7 @@ window.addEventListener('resize', handleWindowResize, { passive: true }); } - document.addEventListener('click', handleClickOutside, { passive: true }); + document.addEventListener('mousedown', handleClickOutside, { passive: true }); }); onUnmounted(() => { @@ -544,7 +544,7 @@ } else { window.removeEventListener('resize', handleWindowResize); } - document.removeEventListener('click', handleClickOutside); + document.removeEventListener('mousedown', handleClickOutside); }); return { diff --git a/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/toolbar/FormatDropdown.vue b/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/toolbar/FormatDropdown.vue index 053ed5b76d..7d5b2a4a1f 100644 --- a/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/toolbar/FormatDropdown.vue +++ b/contentcuration/contentcuration/frontend/shared/views/TipTapEditor/TipTapEditor/components/toolbar/FormatDropdown.vue @@ -1,6 +1,7 @@