Skip to content

Commit 221aca2

Browse files
committed
fix: fix arrow highlight show repeatedly
1 parent 8f106e0 commit 221aca2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/dev.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,3 @@ mind.refresh(convertedData)
202202

203203
const plaintext = mindElixirToPlaintext(mind.getData())
204204
console.log('plaintext', plaintext)
205-
206-
// TODO: 编辑中的arrow再次点击会出现重复的高亮

src/mouse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export default function (mind: MindElixirInstance) {
5151

5252
// Helper: Handle SVG label interactions (click or double-click)
5353
const handleSvgLabelInteraction = (target: HTMLElement, isDoubleClick: boolean): boolean => {
54+
if (target.id === 'input-box' || target.closest('#input-box')) return false
55+
5456
const label = target.closest('.svg-label') as HTMLElement
5557
if (label) {
5658
const id = label.dataset.svgId!

0 commit comments

Comments
 (0)