Skip to content

Commit

Permalink
fix(menububble): Don't crash on missing extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
larvanitis committed Aug 4, 2020
1 parent d2cd6f7 commit 868866b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/menubars/OEditorMenuBubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<section class="tiptap-menububble"
:class="{ 'is-active': editorContext.menu.isActive &&
selectedCellSize === 0 &&
!editorContext.isActive.image() &&
!editorContext.isActive.embed() &&
!editorContext.isActive.katex_block() }"
!(editorContext.isActive.image && editorContext.isActive.image()) &&
!(editorContext.isActive.embed && editorContext.isActive.embed()) &&
!(editorContext.isActive.katex_block && editorContext.isActive.katex_block()) }"
:style="`left: ${editorContext.menu.left}px; bottom: ${editorContext.menu.bottom + 8}px;`">
<template v-for="(item, index) of toolbar">
<q-separator vertical inset :key="index" v-if="item==='separator'" />
Expand Down

0 comments on commit 868866b

Please sign in to comment.