fix: 阻止输入框编辑时的事件冒泡

避免在编辑输入框时触发容器的点击事件
This commit is contained in:
Zhukj
2026-04-25 15:43:02 +08:00
parent 02f3adb936
commit 37aaec1e42

View File

@@ -1669,8 +1669,10 @@
// 如果已经在编辑中,不重复进入 // 如果已经在编辑中,不重复进入
if (editingInput === element) return; if (editingInput === element) return;
// 选中并立即进入编辑模式 // 阻止事件冒泡,避免触发容器点击
selectInput(element); e.stopPropagation();
// 进入编辑模式(selectInput 已在 mousedown 中调用)
startEdit(element); startEdit(element);
}); });
} }