Skip to content

Commit

Permalink
fix(editor): comment on close strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Mar 31, 2023
1 parent 50a8fcb commit 46614c9
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<script setup lang="ts">
import { ref, onMounted, nextTick, computed } from 'vue'
import { useAbsoluteStore } from '@/store/absolute'
import { useDraggable } from '@vueuse/core'
import { tryOnUnmounted, useDraggable } from '@vueuse/core'
import { useEditorStore } from '@/store/editor'
import { useContextStore } from '@/store/context'
import { useEnv } from '@/use/env'
Expand Down Expand Up @@ -93,9 +93,11 @@
onMounted(() => {
search.value?.focus()
})
tryOnUnmounted(() => {
emitter.on('entity-external-comment-save', () => {
onClose()
})
})
Expand Down

0 comments on commit 46614c9

Please sign in to comment.