Skip to content

Commit 725b2bc

Browse files
authored
fix: comments focus (#699)
2 parents a4594b3 + cbd3d3e commit 725b2bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/superdoc/src/SuperDoc.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,15 +549,15 @@ watch(getFloatingComments, () => {
549549
<div class="superdoc__layers layers" ref="layers" role="group">
550550
<!-- Floating tools menu (shows up when user has text selection)-->
551551
<div v-if="showToolsFloatingMenu" class="superdoc__tools tools" :style="toolsMenuPosition">
552-
<div class="tools-item" data-id="is-tool" @click.stop.prevent="handleToolClick('comments')">
552+
<div class="tools-item" data-id="is-tool" @mousedown.stop.prevent="handleToolClick('comments')">
553553
<div class="superdoc__tools-icon" v-html="superdocIcons.comment"></div>
554554
</div>
555555
<!-- AI tool button -->
556556
<div
557557
v-if="proxy.$superdoc.config.modules.ai"
558558
class="tools-item"
559559
data-id="is-tool"
560-
@click.stop.prevent="handleToolClick('ai')"
560+
@mousedown.stop.prevent="handleToolClick('ai')"
561561
>
562562
<div class="superdoc__tools-icon ai-tool"></div>
563563
</div>

0 commit comments

Comments
 (0)